Skip to content

Commit 6dbecb9

Browse files
authored
[Storage] Revise Get-AzStorageAccount help example #2 (#19300)
1 parent b5f7acf commit 6dbecb9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/Storage/Storage.Management/help/Get-AzStorageAccountKey.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,17 @@ This command gets the keys for the specified Azure Storage account.
3333
### Example 2: Get a specific access key for a Storage account
3434
<!-- Skip: Output cannot be splitted from code -->
3535
```
36-
This command gets a specific key for a Storage account. This command works for Azure PowerShell version 1.4, and later versions.
36+
This command gets a specific key for a Storage account.
3737
PS C:\>(Get-AzStorageAccountKey -ResourceGroupName "RG01" -Name "mystorageaccount")| Where-Object {$_.KeyName -eq "key1"}
3838
39-
This command gets a specific key for a Storage account. This command works for Azure PowerShell version 1.3.2, and previous versions.
40-
PS C:\>(Get-AzStorageAccountKey -ResourceGroupName "RG01" -Name "mystorageaccount").Key1
39+
KeyName Value Permissions CreationTime
40+
------- ----- ----------- ------------
41+
key1 <KeyValue> Full
42+
43+
This command gets a specific key value for a Storage account.
44+
PS C:\>(Get-AzStorageAccountKey -ResourceGroupName "RG01" -Name "mystorageaccount")[0].Value
45+
46+
<KeyValue>
4147
```
4248

4349
### Example 3: Lists the access keys for a Storage account, include the Kerberos keys (if active directory enabled)

0 commit comments

Comments
 (0)