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:
261
+
262
+
```azurecli-interactive
263
+
az keyvault show --name mykeyvault --resource-group myresourcegroup --query "[id, properties.vaultUri]"
264
+
```
265
+
266
+
This command returns a value similar to the following text. The first value is the ID and the second is the URI:
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.
For more information, see [Deploy resources with Resource Manager templates and Azure PowerShell](../azure-resource-manager/templates/deploy-powershell.md) and [Deploy private Resource Manager template with SAS token and Azure PowerShell](../azure-resource-manager/templates/secure-template-with-sas-token.md).
95
299
96
-
## Use Azure CLI
300
+
## Use the Azure CLI
97
301
98
302
This example assumes that you have saved the template to a file named `azuredeploy.json` in the current directory:
99
303
@@ -193,7 +397,7 @@ To avoid this problem, we recommend one of the following approaches:
193
397
}
194
398
```
195
399
196
-
After these changes, you can specify the ID of the existing Key Vault resource when running the template. The template will then re-use the Key Vault by setting the `keyVault` property of the workspace to its ID.
400
+
After these changes, you can specify the ID of the existing Key Vault resource when running the template. The template will then reuse the Key Vault by setting the `keyVault` property of the workspace to its ID.
197
401
198
402
To get the ID of the Key Vault, you can reference the output of the original template run or use the Azure CLI. The following command is an example of using the Azure CLI to get the Key Vault resource ID:
0 commit comments