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.
33
33
### Example 2: Get a specific access key for a Storage account
34
34
<!-- Skip: Output cannot be splitted from code -->
35
35
```
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.
37
37
PS C:\>(Get-AzStorageAccountKey -ResourceGroupName "RG01" -Name "mystorageaccount")| Where-Object {$_.KeyName -eq "key1"}
38
38
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>
41
47
```
42
48
43
49
### 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