az storage account keys
Manage storage account keys.
Name | Description | Type | Status |
---|---|---|---|
az storage account keys list |
List the access keys or Kerberos keys (if active directory enabled) for a storage account. |
Core | GA |
az storage account keys renew |
Regenerate one of the access keys or Kerberos keys (if active directory enabled) for a storage account. |
Core | GA |
List the access keys or Kerberos keys (if active directory enabled) for a storage account.
az storage account keys list --account-name
[--resource-group]
List the access keys for a storage account.
az storage account keys list -g MyResourceGroup -n MyStorageAccount
List the access keys and Kerberos keys (if active directory enabled) for a storage account.
az storage account keys list -g MyResourceGroup -n MyStorageAccount --expand-key-type kerb
The storage account name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Regenerate one of the access keys or Kerberos keys (if active directory enabled) for a storage account.
Kerberos key is generated per storage account for Azure Files identity based authentication either with Azure Active Directory Domain Service (Azure AD DS) or Active Directory Domain Service (AD DS). It is used as the password of the identity registered in the domain service that represents the storage account. Kerberos key does not provide access permission to perform any control or data plane read or write operations against the storage account.
az storage account keys renew --account-name
--key {key1, key2, primary, secondary}
[--resource-group]
Regenerate one of the access keys for a storage account.
az storage account keys renew -g MyResourceGroup -n MyStorageAccount --key primary
Regenerate one of the Kerberos keys for a storage account.
az storage account keys renew -g MyResourceGroup -n MyStorageAccount --key secondary --key-type kerb
The storage account name.
The key options to regenerate.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI feedback
Azure CLI is an open source project. Select a link to provide feedback: