Skip to content

Commit 23a2092

Browse files
committed
Standardize resource group names in Key Vault quickstarts
- Update local include key-vault-python-qs-rg-kv-creation.md to use myResourceGroup - Fix inline cleanup code in SDK quickstarts to use myResourceGroup - Fix Bicep quickstart to use myResourceGroup consistently - Fix tutorial VM articles to use myResourceGroup
1 parent 642a5a0 commit 23a2092

14 files changed

Lines changed: 30 additions & 30 deletions

articles/key-vault/certificates/quick-create-go.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ For more examples, see the [module documentation](https://aka.ms/azsdk/go/keyvau
217217
Run the following command to delete the resource group and all its remaining resources:
218218

219219
```azurecli
220-
az group delete --resource-group <resource-group>
220+
az group delete --resource-group "myResourceGroup"
221221
```
222222

223223
## Next steps

articles/key-vault/certificates/quick-create-java.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ deletionPoller.waitForCompletion();
229229
When no longer needed, you can use the Azure CLI or Azure PowerShell to remove your key vault and the corresponding resource group.
230230

231231
```azurecli
232-
az group delete -g "<resource-group>"
232+
az group delete -g "myResourceGroup"
233233
```
234234

235235
```azurepowershell
236-
Remove-AzResourceGroup -Name "<resource-group>"
236+
Remove-AzResourceGroup -Name "myResourceGroup"
237237
```
238238

239239
## Sample code

articles/key-vault/certificates/quick-create-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,13 @@ Otherwise, when you're finished with the resources created in this article, use
210210
### [Azure CLI](#tab/azure-cli)
211211

212212
```azurecli
213-
az group delete --resource-group <resource-group>
213+
az group delete --resource-group "myResourceGroup"
214214
```
215215

216216
### [Azure PowerShell](#tab/azure-powershell)
217217

218218
```azurepowershell
219-
Remove-AzResourceGroup -Name "<resource-group>"
219+
Remove-AzResourceGroup -Name "myResourceGroup"
220220
```
221221

222222
---

articles/key-vault/general/tutorial-javascript-virtual-machine.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ The value of secret 'mySecret' in '<vault-name>' is: 'Success!'
197197
When they are no longer needed, delete the virtual machine and your key vault. You can do this quickly by simply deleting the resource group to which they belong:
198198
199199
```azurecli
200-
az group delete -g <resource-group>
200+
az group delete -g "myResourceGroup"
201201
```
202202
203203
## Next steps

articles/key-vault/general/tutorial-python-virtual-machine.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ The value of secret 'mySecret' in '<vault-name>' is: 'Success!'
153153
When they're no longer needed, delete the virtual machine and your key vault. You can be done quickly by deleting the resource group to which they belong:
154154

155155
```azurecli
156-
az group delete -g <resource-group>
156+
az group delete -g "myResourceGroup"
157157
```
158158

159159
## Next steps

articles/key-vault/includes/key-vault-python-qs-rg-kv-creation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ ms.author: msmbaldwin
1414
1. Use the `az group create` command to create a resource group:
1515

1616
```azurecli
17-
az group create --name <resource-group> --location eastus
17+
az group create --name "myResourceGroup" --location "EastUS"
1818
```
1919
20-
You can change "eastus" to a location nearer to you, if you prefer.
20+
You can change "EastUS" to a location nearer to you, if you prefer.
2121
2222
1. Use `az keyvault create` to create the key vault:
2323
2424
```azurecli
25-
az keyvault create --name <vault-name> --resource-group <resource-group> --enable-rbac-authorization true --enable-purge-protection true
25+
az keyvault create --name "<vault-name>" --resource-group "myResourceGroup" --enable-rbac-authorization true --enable-purge-protection true
2626
```
2727
2828
Replace `<vault-name>` with a name that's unique across all of Azure. You typically use your personal or company name along with other numbers and identifiers.
@@ -32,15 +32,15 @@ ms.author: msmbaldwin
3232
1. Use the `New-AzResourceGroup` command to create a resource group:
3333
3434
```azurepowershell
35-
New-AzResourceGroup -Name "<resource-group>" -Location "eastus"
35+
New-AzResourceGroup -Name "myResourceGroup" -Location "EastUS"
3636
```
3737
38-
You can change "eastus" to a location nearer to you, if you prefer.
38+
You can change "EastUS" to a location nearer to you, if you prefer.
3939
4040
1. Use `New-AzKeyVault` to create the key vault:
4141
4242
```azurepowershell
43-
New-AzKeyVault -Name "<vault-name>" -ResourceGroupName "<resource-group>" -Location "eastus" -EnableRbacAuthorization $true -EnablePurgeProtection
43+
New-AzKeyVault -Name "<vault-name>" -ResourceGroupName "myResourceGroup" -Location "EastUS" -EnableRbacAuthorization $true -EnablePurgeProtection
4444
```
4545
4646
Replace `<vault-name>` with a name that's unique across all of Azure. You typically use your personal or company name along with other numbers and identifiers.

articles/key-vault/keys/quick-create-go.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ For more examples, see the [module documentation](https://aka.ms/azsdk/go/keyvau
195195
Run the following command to delete the resource group and all its remaining resources:
196196

197197
```azurecli
198-
az group delete --resource-group quickstart-rg
198+
az group delete --resource-group "myResourceGroup"
199199
```
200200

201201
## Next steps

articles/key-vault/keys/quick-create-java.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,11 @@ az keyvault key show --vault-name <vault-name> --name myKey
227227
When no longer needed, you can use the Azure CLI or Azure PowerShell to remove your key vault and the corresponding resource group.
228228

229229
```azurecli
230-
az group delete -g "<resource-group>"
230+
az group delete -g "myResourceGroup"
231231
```
232232

233233
```azurepowershell
234-
Remove-AzResourceGroup -Name "<resource-group>"
234+
Remove-AzResourceGroup -Name "myResourceGroup"
235235
```
236236

237237
## Sample code

articles/key-vault/keys/quick-create-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,13 @@ Otherwise, when you're finished with the resources created in this article, use
204204
### [Azure CLI](#tab/azure-cli)
205205

206206
```azurecli
207-
az group delete --resource-group <resource-group>
207+
az group delete --resource-group "myResourceGroup"
208208
```
209209

210210
### [Azure PowerShell](#tab/azure-powershell)
211211

212212
```azurepowershell
213-
Remove-AzResourceGroup -Name "<resource-group>"
213+
Remove-AzResourceGroup -Name "myResourceGroup"
214214
```
215215

216216
---

articles/key-vault/secrets/quick-create-bicep.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ Two Azure resources are defined in the Bicep file:
6565
# [CLI](#tab/CLI)
6666
6767
```azurecli
68-
az group create --name exampleRG --location eastus
69-
az deployment group create --resource-group exampleRG --template-file main.bicep --parameters keyVaultName=<vault-name> objectId=<object-id>
68+
az group create --name myResourceGroup --location eastus
69+
az deployment group create --resource-group myResourceGroup --template-file main.bicep --parameters keyVaultName=<vault-name> objectId=<object-id>
7070
```
7171
7272
# [PowerShell](#tab/PowerShell)
7373
7474
```azurepowershell
75-
New-AzResourceGroup -Name exampleRG -Location eastus
76-
New-AzResourceGroupDeployment -ResourceGroupName exampleRG -TemplateFile ./main.bicep -keyVaultName "<vault-name>" -objectId "<object-id>"
75+
New-AzResourceGroup -Name myResourceGroup -Location eastus
76+
New-AzResourceGroupDeployment -ResourceGroupName myResourceGroup -TemplateFile ./main.bicep -keyVaultName "<vault-name>" -objectId "<object-id>"
7777
```
7878
7979
---
@@ -113,13 +113,13 @@ When no longer needed, use the Azure portal, Azure CLI, or Azure PowerShell to d
113113
# [CLI](#tab/CLI)
114114

115115
```azurecli-interactive
116-
az group delete --name exampleRG
116+
az group delete --name myResourceGroup
117117
```
118118

119119
# [PowerShell](#tab/PowerShell)
120120

121121
```azurepowershell-interactive
122-
Remove-AzResourceGroup -Name exampleRG
122+
Remove-AzResourceGroup -Name myResourceGroup
123123
```
124124

125125
---

0 commit comments

Comments
 (0)