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
To get the ID of the Key Vault, and the key URI needed by this template, you can use the Azure CLI. The following command is an example of using the Azure CLI to get the Key Vault resource ID and URI:
264
+
To get the ID of the Key Vault, and the key URI needed by this template, you can use the Azure CLI. The following command gets the Key Vault ID:
263
265
264
266
```azurecli-interactive
265
-
az keyvault show --name mykeyvault --resource-group myresourcegroup --query "[id, properties.vaultUri]"
267
+
az keyvault show --name mykeyvault --resource-group myresourcegroup --query "id"
266
268
```
267
269
268
-
This command returns a value similar to the following text. The first value is the ID and the second is the URI:
270
+
This command returns a value similar to `"/subscriptions/{subscription-guid}/resourceGroups/myresourcegroup/providers/Microsoft.KeyVault/vaults/mykeyvault"`.
271
+
272
+
To get the URI for the customer managed key, use the following command:
az keyvault key show --vault-name mykeyvault --name mykey --query "key.kid"
275
276
```
276
277
278
+
This command returns a value similar to `"https://mykeyvault.vault.azure.net/keys/mykey/{guid}"`.
279
+
280
+
> [!IMPORTANT]
281
+
> Once a workspace has been created, you cannot change the settings for confidential data, encryption, key vault ID, or key identifiers. To change these values, you must create a new workspace using the new values.
282
+
277
283
## Use the Azure portal
278
284
279
285
1. Follow the steps in [Deploy resources from custom template](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-template-deploy-portal#deploy-resources-from-custom-template). When you arrive at the __Edit template__ screen, paste in the template from this document.
0 commit comments