App Service access Storage Account with User Assigned Identity not work

Andy Lang 0 Reputation points
2025-01-15T16:15:55.9833333+00:00

Use case:

  • There is a web app deployed to App Service, it writes json files to Azure Storage account.
  • Code is tested and proves functional.
  • VNet is configured.
  • A User assigned identity with storage blob contributor role on the storage account assigned to the app service.

Environment:

  • Microsoft Corp
  • Microsoft PME

When invoking the API, I got the exception "Azure.Identity.AuthenticationFailedException: ManagedIdentityCredential authentication failed: Service request failed."

Also, tested with System assigned identity with storage blob contributor role, it works.

Thanks.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,266 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andy Lang 0 Reputation points
    2025-02-11T16:31:26.71+00:00

    @Harshitha Veeramalla thanks for the answer.

    Yes, it works. I think there was some caching, so at the beginning it did not work.

    0 comments No comments

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.