You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
77
77
78
78
```azurecli
79
79
az group create --name ${RESOURCE_GROUP} --location ${LOCATION}
80
80
```
81
81
82
82
## Set up your Key Vault
83
83
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:
85
85
86
-
> [!Important]
86
+
> [!IMPORTANT]
87
87
> Each Key Vault must have a unique name.
88
88
89
89
```azurecli
@@ -101,7 +101,7 @@ az keyvault show \
101
101
--query properties.vaultUri --output tsv
102
102
```
103
103
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:
105
105
106
106
```azurecli
107
107
az keyvault secret set \
@@ -148,10 +148,12 @@ Use the following command to create a user-assigned managed identity:
148
148
149
149
```azurecli
150
150
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} \
152
153
--name ${USER_ASSIGNED_IDENTITY} \
153
154
--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} \
155
157
--name ${USER_ASSIGNED_IDENTITY} \
156
158
--query id --output tsv)
157
159
```
@@ -205,10 +207,12 @@ Use the following command to create a user-assigned managed identity:
205
207
206
208
```azurecli
207
209
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} \
209
212
--name ${USER_ASSIGNED_IDENTITY} \
210
213
--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 \
0 commit comments