Skip to content

Commit a9da03d

Browse files
Apply suggestions from review
Co-authored-by: Karl Erickson <[email protected]>
1 parent 084947c commit a9da03d

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

articles/spring-apps/enterprise/tutorial-managed-identities-key-vault.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,17 @@ export USER_ASSIGNED_IDENTITY=<user-assigned-identity-name>
7373

7474
## Create a resource group
7575

76-
A resource group is a logical container into which Azure resources are deployed and managed. Create a resource group to contain both the Key Vault and Spring Cloud using the following [az group create](/cli/azure/group#az-group-create) command:
76+
A resource group is a logical container into which Azure resources are deployed and managed. Create a resource group to contain both the Key Vault and Spring Cloud using the [az group create](/cli/azure/group#az-group-create) command, as shown in the following example:
7777

7878
```azurecli
7979
az group create --name ${RESOURCE_GROUP} --location ${LOCATION}
8080
```
8181

8282
## Set up your Key Vault
8383

84-
To create a Key Vault, use the following [az keyvault create](/cli/azure/keyvault#az-keyvault-create) command:
84+
To create a Key Vault, use the [az keyvault create](/cli/azure/keyvault#az-keyvault-create) command, as shown in the following example:
8585

86-
> [!Important]
86+
> [!IMPORTANT]
8787
> Each Key Vault must have a unique name.
8888
8989
```azurecli
@@ -101,7 +101,7 @@ az keyvault show \
101101
--query properties.vaultUri --output tsv
102102
```
103103

104-
You can now place a secret in your Key Vault by using the following [az keyvault secret set](/cli/azure/keyvault/secret#az-keyvault-secret-set) command:
104+
You can now place a secret in your Key Vault by using the [az keyvault secret set](/cli/azure/keyvault/secret#az-keyvault-secret-set) command, as shown in the following example:
105105

106106
```azurecli
107107
az keyvault secret set \
@@ -148,10 +148,12 @@ Use the following command to create a user-assigned managed identity:
148148

149149
```azurecli
150150
az identity create --resource-group ${RESOURCE_GROUP} --name ${USER_ASSIGNED_IDENTITY}
151-
export MANAGED_IDENTITY_PRINCIPAL_ID=$(az identity show --resource-group ${RESOURCE_GROUP} \
151+
export MANAGED_IDENTITY_PRINCIPAL_ID=$(az identity show \
152+
--resource-group ${RESOURCE_GROUP} \
152153
--name ${USER_ASSIGNED_IDENTITY} \
153154
--query principalId --output tsv)
154-
export USER_IDENTITY_RESOURCE_ID=$(az identity show --resource-group ${RESOURCE_GROUP} \
155+
export USER_IDENTITY_RESOURCE_ID=$(az identity show \
156+
--resource-group ${RESOURCE_GROUP} \
155157
--name ${USER_ASSIGNED_IDENTITY} \
156158
--query id --output tsv)
157159
```
@@ -205,10 +207,12 @@ Use the following command to create a user-assigned managed identity:
205207

206208
```azurecli
207209
az identity create --resource-group ${RESOURCE_GROUP} --name ${USER_ASSIGNED_IDENTITY}
208-
export MANAGED_IDENTITY_PRINCIPAL_ID=$(az identity show --resource-group ${RESOURCE_GROUP} \
210+
export MANAGED_IDENTITY_PRINCIPAL_ID=$(az identity show \
211+
--resource-group ${RESOURCE_GROUP} \
209212
--name ${USER_ASSIGNED_IDENTITY} \
210213
--query principalId --output tsv)
211-
export USER_IDENTITY_RESOURCE_ID=$(az identity show --resource-group ${RESOURCE_GROUP} \
214+
export USER_IDENTITY_RESOURCE_ID=$(az identity show \
215+
--resource-group ${RESOURCE_GROUP} \
212216
--name ${USER_ASSIGNED_IDENTITY} \
213217
--query id --output tsv)
214218
```
@@ -274,7 +278,8 @@ spring.cloud.azure.keyvault.secret.property-sources[0].credential.managed-identi
274278
Use the following command to query the client ID of the user-assigned managed identity:
275279

276280
```azurecli
277-
az identity show --resource-group ${RESOURCE_GROUP} \
281+
az identity show \
282+
--resource-group ${RESOURCE_GROUP} \
278283
--name ${USER_ASSIGNED_IDENTITY} \
279284
--query clientId --output tsv
280285
```

0 commit comments

Comments
 (0)