diff --git a/articles/app-service/configure-custom-container.md b/articles/app-service/configure-custom-container.md index cdd348abc8006..6f2b5acd18825 100644 --- a/articles/app-service/configure-custom-container.md +++ b/articles/app-service/configure-custom-container.md @@ -83,6 +83,16 @@ Supply the sign-in credentials for your private registry account in the *\ [!IMPORTANT] +> Your Azure Container Registry must allow ARM audience tokens for authentication in order to use managed identity to pull images. If this setting is disabled, image pulls fail with an `UNAUTHORIZED` "token validation failed" error. To check and enable this setting, run the following commands: +> +> ```azurecli-interactive +> az acr config authentication-as-arm show -r +> az acr config authentication-as-arm update -r --status enabled +> ``` +> +> For more information, see [Configure registry acceptance of Microsoft Entra authentication scopes](/azure/container-registry/container-registry-disable-authentication-as-arm). + 1. Enable the [system-assigned managed identity](./overview-managed-identity.md) for the web app by using the [`az webapp identity assign`](/cli/azure/webapp/identity#az-webapp-identity-assign) command: ```azurecli-interactive