Skip to content

Commit 4461112

Browse files
committed
Apply quotation mark rules to PowerShell commands
1 parent a7eb0df commit 4461112

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

articles/key-vault/secrets/overview-storage-keys-powershell.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ For more information about account SAS, see:
237237
Use the Azure PowerShell [Set-AzKeyVaultManagedStorageSasDefinition](/powershell/module/az.keyvault/set-azkeyvaultmanagedstoragesasdefinition) cmdlet to create a shared access signature definition. You can provide the name of your choice to the `-Name` parameter.
238238

239239
```azurepowershell-interactive
240-
Set-AzKeyVaultManagedStorageSasDefinition -AccountName $storageAccountName -VaultName $keyVaultName -Name <sas-definition-name> -TemplateUri $sasTemplate -SasType 'account' -ValidityPeriod ([System.Timespan]::FromDays(1))
240+
Set-AzKeyVaultManagedStorageSasDefinition -AccountName $storageAccountName -VaultName $keyVaultName -Name "<sas-definition-name>" -TemplateUri $sasTemplate -SasType 'account' -ValidityPeriod ([System.Timespan]::FromDays(1))
241241
```
242242

243243
### Verify the shared access signature definition
@@ -247,7 +247,7 @@ You can verify that the shared access signature definition has been stored in yo
247247
First, find the shared access signature definition in your key vault.
248248

249249
```azurepowershell-interactive
250-
Get-AzKeyVaultSecret -VaultName <vault-name>
250+
Get-AzKeyVaultSecret -VaultName "<vault-name>"
251251
```
252252

253253
The secret corresponding to your SAS definition will have these properties:
@@ -263,7 +263,7 @@ Tags :
263263
You can now use the [Get-AzKeyVaultSecret](/powershell/module/az.keyvault/get-azkeyvaultsecret) cmdlet with the `VaultName` and `Name` parameters to view the contents of that secret.
264264

265265
```azurepowershell-interactive
266-
$secretValueText = Get-AzKeyVaultSecret -VaultName <vault-name> -Name <secret-name> -AsPlainText
266+
$secretValueText = Get-AzKeyVaultSecret -VaultName "<vault-name>" -Name "<secret-name>" -AsPlainText
267267
Write-Output $secretValueText
268268
```
269269

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Now, you have created a Key Vault, stored a secret, and retrieved it.
7272
When no longer needed, you can use the [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup) command to remove the resource group, Key Vault, and all related resources.
7373

7474
```azurepowershell-interactive
75-
Remove-AzResourceGroup -Name <resource-group>
75+
Remove-AzResourceGroup -Name "<resource-group>"
7676
```
7777

7878
## Next steps

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ az group delete --resource-group <resource-group>
211211
### [Azure PowerShell](#tab/azure-powershell)
212212

213213
```azurepowershell
214-
Remove-AzResourceGroup -Name <resource-group>
214+
Remove-AzResourceGroup -Name "<resource-group>"
215215
```
216216

217217
---

0 commit comments

Comments
 (0)