How do I access my Azure Storage using managed identity?

David Thielen 3,211 Reputation points
2024-07-08T18:10:21.0766667+00:00

Hi all;

I have a managed identity created. How do I (step by step please as I remember this as being complicated):

  1. Set the BLOB storage to allow access via managed identity?
  2. What is the connection string I then provide to the production server?
  3. How do I keep the dev server using the explicit setting in Azure App Server | Environment Variables | Connection strings?

thanks - dave

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,178 questions
{count} votes

Accepted answer
  1. KarishmaTiwari-MSFT 20,767 Reputation points Microsoft Employee Moderator
    2024-07-09T01:10:05.0033333+00:00

    @David Thielen Thanks for posting your query on Microsoft Q&A.

    Here is an example: Connect to Azure resources with Managed Identity – Storage account example

    To keep the dev server using an explicit setting, set the connection string as an environment variable in your Azure App Service configuration. This way, your app can access it without hard coding the value in your code.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    8 deleted comments

    Comments have been turned off. Learn more

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.