Accessing Managed Identity in Docker Compose App Service

Umer Rashid 170 Reputation points
2024-01-30T10:41:45.35+00:00

I am running Docker Compose in an Azure App Service that has system-assigned managed identity enabled. I deployed this docker compose on Azure Container Registry that also had system-assigned managed identity enabled. I also granted this App Service's managed identity the access to a key vault and assigned it the role of 'Key Vault Administrator'. When I run this app, I get this error: "const err = new AggregateAuthenticationError(errors, "ChainedTokenCredential authentication failed."); AggregateAuthenticationError: ChainedTokenCredential authentication failed. CredentialUnavailableError: EnvironmentCredential is unavailable. No underlying credential could be used. To troubleshoot, visit https://aka.ms/azsdk/js/identity/environmentcredential/troubleshoot. CredentialUnavailableError: WorkloadIdentityCredential: is unavailable. tenantId, clientId, and federatedTokenFilePath are required parameters." Can anyone please tell me if I have to make some other configurations to make this work? Regards, Umar

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

2 answers

Sort by: Newest
  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.


    Comments have been turned off. Learn more

  2. Deepanshu katara 18,005 Reputation points MVP Volunteer Moderator
    2024-01-30T10:55:21.12+00:00

    Hi Umer, As of now managed identities is not supported with Multi-container webapps . Web App for Multi Containers is still in preview. You can keep up to date by checking this documentation or on the App Service Team blog site. Please let us know if you have further questions. Thanks Deepanshu

    Was this answer helpful?


Your answer

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