Search code examples
azureazure-powershellazure-sdk-python

Executing Python and Azure CLI on Windows local PC?


What are the steps I must take in order to execute the Python script and Azure CLI on my Windows computer?

Script: https://raw.githubusercontent.com/cyberark/BlobHunter/main/BlobHunter.py


Solution

  • You must configure your local Python dev environment for Azure. One-time setup instructions to prep your machine would include:

    Once that is done, you can activate the virtual environment, pip install the libraries required by the referenced script, and then execute it with the following command:

    py <script-name>.py
    

    Check this article for detailed instructions and next steps: Configure your local Python dev environment for Azure