Skip to content

Commit bc8c314

Browse files
Merge pull request #219631 from MGoedtel/updateAKSTutorial1128
updated steps for Key Vault cfg in tutorial
2 parents c8c2e23 + e2fd788 commit bc8c314

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

articles/aks/learn/tutorial-kubernetes-workload-identity.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Tutorial - Use a workload identity with an application on Azure Kubernete
33
description: In this Azure Kubernetes Service (AKS) tutorial, you deploy an Azure Kubernetes Service cluster and configure an application to use a workload identity.
44
services: container-service
55
ms.topic: tutorial
6-
ms.date: 11/16/2022
6+
ms.date: 11/28/2022
77
---
88

99
# Tutorial: Use a workload identity with an application on Azure Kubernetes Service (AKS)
@@ -143,6 +143,12 @@ To add a secret to the vault, you need to run the Azure CLI [az keyvault secret
143143
az keyvault secret set --vault-name "${KEYVAULT_NAME}" --name "${KEYVAULT_SECRET_NAME}" --value 'Hello!'
144144
```
145145

146+
To add the Key Vault URL to the environment variable `KEYVAULT_URL`, you can run the Azure CLI [az keyvault show][az-keyvault-show] command.
147+
148+
```bash
149+
export KEYVAULT_URL="$(az keyvault show -g ${RESOURCE_GROUP} -n ${KEYVAULT_NAME} --query properties.vaultUri -o tsv)"
150+
```
151+
146152
## Create a managed identity and grant permissions to access the secret
147153

148154
Use the Azure CLI [az account set][az-account-set] command to set a specific subscription to be the current active subscription. Then use the [az identity create][az-identity-create] command to create a managed identity.
@@ -303,3 +309,4 @@ This tutorial is for introductory purposes. For guidance on a creating full solu
303309
[az-identity-federated-credential-create]: /cli/azure/identity/federated-credential#az-identity-federated-credential-create
304310
[aks-tutorial]: ../tutorial-kubernetes-prepare-app.md
305311
[aks-solution-guidance]: /azure/architecture/reference-architectures/containers/aks-start-here
312+
[az-keyvault-show]: /cli/azure/keyvault#az-keyvault-show

0 commit comments

Comments
 (0)