Skip to content

Commit 5668240

Browse files
Update
1 parent 7f37e01 commit 5668240

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

articles/azure-app-configuration/reference-kubernetes-provider.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ The software may collect information about you and your use of the software and
261261

262262
1. [Get the OIDC issuer URL](/azure/aks/workload-identity-deploy-cluster#retrieve-the-oidc-issuer-url) of the AKS cluster.
263263

264-
1. [Create a user-assigned managed identity](/azure/active-directory/managed-identities-azure-resources/how-manage-user-assigned-managed-identities#create-a-user-assigned-managed-identity) and note down its client ID after creation.
264+
1. [Create a user-assigned managed identity](/azure/active-directory/managed-identities-azure-resources/how-manage-user-assigned-managed-identities#create-a-user-assigned-managed-identity) and note down its name and resource group.
265265

266266
1. [Grant the user-assigned managed identity **App Configuration Data Reader** role](/azure/azure-app-configuration/concept-enable-rbac#assign-azure-roles-for-access-rights) in Azure App Configuration.
267267

@@ -272,16 +272,15 @@ The software may collect information about you and your use of the software and
272272
kind: ServiceAccount
273273
metadata:
274274
name: <your-service-account-name>
275-
namespace: default
276275
annotations:
277276
azure.workload.identity/client-id: <your-managed-identity-client-id>
278277
azure.workload.identity/tenant-id: <your-tenant-id>
279278
```
280279

281-
1. Create federated identity credential for the user-assigned managed identity using the Azure CLI.
280+
1. Create federated identity credential for the user-assigned managed identity using the Azure CLI. Replace `<user-assigned-identity-name>` with name and `<resource-group>` with resource group of user-assigned managed identity just been created. Replace `<aks-oidc-issuer>` with the OIDC issuer URL of the AKS cluster. Replace `<your-service-account-name>` with the name of the service account just been created.
282281

283282
``` azurecli
284-
az identity federated-credential create --name "${FEDERATED_IDENTITY_CREDENTIAL_NAME}" --identity-name "${USER_ASSIGNED_IDENTITY_NAME}" --resource-group "${RESOURCE_GROUP}" --issuer "${AKS_OIDC_ISSUER}" --subject system:serviceaccount:default:my-service-account --audience api://AzureADTokenExchange
283+
az identity federated-credential create --name appconfigCredential --identity-name "<user-assigned-identity-name>" --resource-group "<resource-group>" --issuer "<aks-oidc-issuer>" --subject system:serviceaccount:default:<your-service-account-name> --audience api://AzureADTokenExchange
285284
```
286285

287286
The subject of the federated identity credential should be in the format `system:serviceaccount:<service-account-namespace>:<service-account-name>`.
@@ -293,7 +292,6 @@ The software may collect information about you and your use of the software and
293292
kind: AzureAppConfigurationProvider
294293
metadata:
295294
name: appconfigurationprovider-sample
296-
namespace: default
297295
spec:
298296
endpoint: <your-app-configuration-store-endpoint>
299297
target:

0 commit comments

Comments
 (0)