How can I resolve the "This request is not authorized to perform this operation." error when connecting to Azure Storage Account through Power Automate Flow?

Shafayat Syed 45 Reputation points
2024-05-14T16:17:39.1666667+00:00

Here is what I want to do:

Take contents of a CSV file and use Power Automate to save it into the Azure Storage Account Folder

Here is what I have done so far

  1. Added the account that is creating the flow as the "Storage Blob Data Contributor"
  2. Obtained the Endpoint from the blade for File Service (https://<storageaccountname>.file.core.windows.net/)
  3. Obtained the Storage Account Access Key

When I plug in the connection those strings in Power Automate, I get this error

Test connection failed. Details: This request is not authorized to perform this operation.

This is the networking setup
User's image

User's image

User's image

Am I missing anything in the configuration? Thanks for the help.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,773 questions
0 comments No comments
{count} vote

Accepted answer
  1. Amrinder Singh 3,410 Reputation points Microsoft Employee
    2024-05-14T17:16:50.2466667+00:00

    Hi Shafayat Syed - Thanks for reaching out.

    From the first part, you are using a build in role for blob services while you are connecting to a file share endpoint. Moreover, you are further using access keys which is superlative access further.

    From the Networking configuration, it goes with trusted services if you are using MI.

    As a quick isolation, I would suggest you to try selecting configuration via All Networks and test the same. If that works, there is a blocker on the networking level.

    Please let us know if you have any further queries. I’m happy to assist you further.    


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


1 additional answer

Sort by: Most helpful
  1. Nehruji R 3,046 Reputation points Microsoft Vendor
    2024-05-15T11:09:38.26+00:00

    Hello Shafayat Syed,

    Greetings! Welcome to Microsoft Q&A Platform.

    The error message you’re encountering indicates that the connection is not authorized to perform the operation and below are some troubleshooting steps you can check and resolve the issue.

    • Ensure that the SAS token or account key you’re using in Power Automate is correct and double-check that the SAS token has the necessary permissions (write access) for the blob container.
    • Make sure that the storage account’s access control settings allow the specified operation also to check if the “Public access” setting is configured correctly. It should match your intended access level (e.g., private, blob, container).
    • Ensure that there are no network or firewall rules blocking the connection and verify that your network allows outbound connections to Azure Blob Storage. Sometimes transient issues can cause connection failures. Retry the connection after verifying the above points.

    Reference articles:

    Hope this answer helps! Please let us know if you have any further queries. I’m happy to assist you further.


    Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments