We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82e1163 commit 709ec92Copy full SHA for 709ec92
articles/aks/web-app-routing.md
@@ -141,7 +141,7 @@ LOCATION=<Location>
141
# Retrieve user managed identity object ID for the add-on
142
SUBSCRIPTION_ID=$(az account show --query id --output tsv)
143
MANAGEDIDENTITYNAME="webapprouting-${CLUSTERNAME}"
144
-MCRGNAME="MC_${RGNAME}_${CLUSTERNAME}_${LOCATION}"
+MCRGNAME=$(az aks show -g ${RGNAME} -n ${CLUSTERNAME} --query nodeResourceGroup -o tsv)
145
USERMANAGEDIDENTITY_RESOURCEID="/subscriptions/${SUBSCRIPTION_ID}/resourceGroups/${MCRGNAME}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/${MANAGEDIDENTITYNAME}"
146
MANAGEDIDENTITY_OBJECTID=$(az resource show --id $USERMANAGEDIDENTITY_RESOURCEID --query "properties.principalId" -o tsv | tr -d '[:space:]')
147
```
0 commit comments