Authorization Error When Retrieving File share Information From Storage Account

ElroyTong-7850 45 Reputation points
2024-07-03T04:05:48.07+00:00

I have built a script for a resource HealthCheck, however i encountered an authorize error issue.
For context I have two storage accounts, one public for UAT and one private for production. I have set up a user assigned managed identity for the same identity across multiple Azure resources and assigned permissions for both storage account SMB file share contributors. I can retrieve information from the UAT storage account but receive an authorization error when retrieving from production. Could this be a networking issue? The error message is shown below.

User's image

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,871 questions
0 comments No comments
{count} vote

Accepted answer
  1. Deepanshukatara-6769 7,045 Reputation points
    2024-07-03T06:03:53.7166667+00:00

    Hi, Welcome to MS Q&A

    1. Network Restrictions:
      • Verify if the production storage account has any network restrictions. If it is configured to allow access only from specific virtual networks or IP addresses, ensure that the requests are coming from an allowed network. Also make sure Allow Azure services on the trusted services list to access this storage account and Microsoft network routing.

    User's image

    kindly accept answer if it helps

    Please let us know if any further questions

    Thanks

    Deepanshu


0 additional answers

Sort by: Most helpful