Skip to content

Commit a0141de

Browse files
Merge pull request #209519 from schaffererin/update-query-id
Updating Azure CLI command in Azure AD and Kubernetes RBAC article
2 parents 9cd98ee + ef8aa99 commit a0141de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/aks/azure-ad-rbac.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ kubectl apply -f role-dev-namespace.yaml
181181
Next, get the resource ID for the *appdev* group using the [az ad group show][az-ad-group-show] command. This group is set as the subject of a RoleBinding in the next step.
182182

183183
```azurecli-interactive
184-
az ad group show --group appdev --query objectId -o tsv
184+
az ad group show --group appdev --query id -o tsv
185185
```
186186

187187
Now, create a RoleBinding for the *appdev* group to use the previously created Role for namespace access. Create a file named `rolebinding-dev-namespace.yaml` and paste the following YAML manifest. On the last line, replace *groupObjectId* with the group object ID output from the previous command:
@@ -249,7 +249,7 @@ kubectl apply -f role-sre-namespace.yaml
249249
Get the resource ID for the *opssre* group using the [az ad group show][az-ad-group-show] command:
250250

251251
```azurecli-interactive
252-
az ad group show --group opssre --query objectId -o tsv
252+
az ad group show --group opssre --query id -o tsv
253253
```
254254

255255
Create a RoleBinding for the *opssre* group to use the previously created Role for namespace access. Create a file named `rolebinding-sre-namespace.yaml` and paste the following YAML manifest. On the last line, replace *groupObjectId* with the group object ID output from the previous command:

0 commit comments

Comments
 (0)