Skip to content

Commit 3a12c1f

Browse files
(AzureCXP) MicrosoftDocs/azure-docs#47558
replaced the deprecated option
1 parent 03db22f commit 3a12c1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/aks/control-kubeconfig-access.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ AKS_CLUSTER=$(az aks show --resource-group myResourceGroup --name myAKSCluster -
6060
6161
# Get the account credentials for the logged in user
6262
ACCOUNT_UPN=$(az account show --query user.name -o tsv)
63-
ACCOUNT_ID=$(az ad user show --upn-or-object-id $ACCOUNT_UPN --query objectId -o tsv)
63+
ACCOUNT_ID=$(az ad user show --id $ACCOUNT_UPN --query objectId -o tsv)
6464
6565
# Assign the 'Cluster Admin' role to the user
6666
az role assignment create \

0 commit comments

Comments
 (0)