How to install azure-storage-blob in azure automation python script?

37853780 0 Reputation points
2023-10-16T02:16:09.75+00:00

Hi I am trying to install Azure storage blob library in azure runbook under azure automation account but it is showing syntax error maybe pip is not installed inside it can anyone help me how to install it .

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,196 questions
{count} votes

1 answer

Sort by: Most helpful
  1. tbgangav-MSFT 10,421 Reputation points
    2023-10-18T16:28:23.1466667+00:00

    Hi @37853780 ,

    This article describes how to import, manage, and use Python 3 packages in Azure Automation running on the Azure sandbox environment and Hybrid Runbook Workers. Python packages should be downloaded on Hybrid Runbook workers for successful job execution as you were trying using pip install command. But if you are using Azure sandbox environment then import the package as explained in this section of the same document.

    For example, as you wanted azure_storage_blob package so download the related file from here and import it as explained in this section of the same document. Also, note that import any dependent packages as well. Then once they are successfully imported, execute your runbook by removing the "pip install azure-storage-blob" line from your code.User's image

    User's image

    0 comments No comments