Skip to content

Commit b04f592

Browse files
committed
Fix
1 parent 620e24b commit b04f592

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

scenarios/AksKaito/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,6 @@ az aks get-credentials --resource-group ${AZURE_RESOURCE_GROUP} --name ${CLUSTER
121121

122122
## Create role assignment for the service principal
123123

124-
```bash
125-
az role assignment create --role "Contributor" \
126-
--assignee "${PRINCIPAL_ID}" \
127-
--scope "/subscriptions/${SUBSCRIPTION_ID}/resourcegroups/${AZURE_RESOURCE_GROUP}"
128-
```
129-
130-
## Establish a federated identity credential
131-
132-
Create the federated identity credential between the managed identity, AKS OIDC issuer, and subject using the [az identity federated-credential create](https://learn.microsoft.com/en-us/cli/azure/identity/federated-credential?view=azure-cli-latest) command.
133-
134124
```bash
135125
export MC_RESOURCE_GROUP=$(az aks show --resource-group ${AZURE_RESOURCE_GROUP} \
136126
--name ${CLUSTER_NAME} \
@@ -144,6 +134,16 @@ export AKS_OIDC_ISSUER=$(az aks show --resource-group "${AZURE_RESOURCE_GROUP}"
144134
--query "oidcIssuerProfile.issuerUrl" \
145135
-o tsv)
146136

137+
az role assignment create --role "Contributor" \
138+
--assignee "${PRINCIPAL_ID}" \
139+
--scope "/subscriptions/${SUBSCRIPTION_ID}/resourcegroups/${AZURE_RESOURCE_GROUP}"
140+
```
141+
142+
## Establish a federated identity credential
143+
144+
Create the federated identity credential between the managed identity, AKS OIDC issuer, and subject using the [az identity federated-credential create](https://learn.microsoft.com/en-us/cli/azure/identity/federated-credential?view=azure-cli-latest) command.
145+
146+
```bash
147147
az identity federated-credential create --name "kaito-federated-identity" \
148148
--identity-name "${KAITO_IDENTITY_NAME}" \
149149
-g "${MC_RESOURCE_GROUP}" \

0 commit comments

Comments
 (0)