File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/Storage/Storage.Management/help Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff 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.
3737PS 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)
You can’t perform that action at this time.
0 commit comments