Load file into Blob storage using Python runbook

Maryna Paluyanava 211 Reputation points
2023-02-07T21:27:28.9433333+00:00

Hello,

I need to load a file into blob storage.
I created Python runbook, and would like to execute it using WebHook activity in Azure Data Factory.

blob

The runbook throws an error: "azure.core.exceptions.HttpResponseError: This request is not authorized to perform this operation."

We have only private endpoints inside virtual network. I gave to ADF a Contributor role inside of Azure Automation account settings as well as to Azure Automation account a Contributor role inside of Blob Storage account settings.

However the issue did not disappear.

Could anybody give me any hints how to resolve the issue?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Maryna Paluyanava 211 Reputation points
    2023-02-09T13:55:08.65+00:00

    Hello @PRADEEPCHEEKATLA ,

    Thank you for your response.

    I found this question https://learn.microsoft.com/en-us/answers/questions/473799/an-error-occurred-when-running-automation-account

    So we created Hybrid Runbook Worker Group and run our Runbooks against the Hybrid Worker. It works.
    We found this article to be useful https://www.shudnow.io/2022/07/11/using-python-3-8-0-azure-runbooks-with-python-packages/


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.