Skip to content

Commit e7362e3

Browse files
authored
Merge pull request #122203 from Elektronenvolt/patch-1
Update azure-rbac.md
2 parents a7964e3 + daa09aa commit e7362e3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

articles/azure-arc/kubernetes/azure-rbac.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,11 @@ node-3 Ready agent 6m33s v1.18.14
716716

717717
If the secret for the server application's service principal has expired, you'll need to rotate it.
718718

719+
### [Azure CLI >= v2.3.7](#tab/AzureCLI)
720+
```azurecli
721+
SERVER_APP_SECRET=$(az ad sp credential reset --id "${SERVER_APP_ID}" --query password -o tsv)
722+
```
723+
### [Azure CLI < v2.3.7](#tab/AzureCLI236)
719724
```azurecli
720725
SERVER_APP_SECRET=$(az ad sp credential reset --name "${SERVER_APP_ID}" --credential-description "ArcSecret" --query password -o tsv)
721726
```
@@ -726,6 +731,8 @@ Update the secret on the cluster. Include any optional parameters you configured
726731
az connectedk8s enable-features -n <clusterName> -g <resourceGroupName> --features azure-rbac --app-id "${SERVER_APP_ID}" --app-secret "${SERVER_APP_SECRET}"
727732
```
728733

734+
---
735+
729736
## Next steps
730737

731738
- Securely connect to the cluster by using [Cluster Connect](cluster-connect.md).

0 commit comments

Comments
 (0)