Skip to content

Commit a5dcc41

Browse files
Merge pull request #228612 from AjayBathini-MSFT/patch-44
(AzureCXP) fixes MicrosoftDocs/azure-docs#105781
2 parents 3a63d28 + 32d8d37 commit a5dcc41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/container-registry/container-registry-helm-repos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Run `helm registry login` to authenticate with the registry. You may pass [regi
147147
--scopes $(az acr show --name $ACR_NAME --query id --output tsv) \
148148
--role acrpush \
149149
--query "password" --output tsv)
150-
USER_NAME=$(az ad sp list --display-name $SERVICE_PRINCIPAL_NAME --query "[].appId" --output tsv)
150+
USER_NAME=$(az identity show -n $SERVICE_PRINCIPAL_NAME -g $RESOURCE_GROUP_NAME --subscription $SUBSCRIPTION_ID --query "clientId" -o tsv)
151151
```
152152
- Authenticate with your [individual Azure AD identity](container-registry-authentication.md?tabs=azure-cli#individual-login-with-azure-ad) to push and pull Helm charts using an AD token.
153153
```azurecli

0 commit comments

Comments
 (0)