az storage account keys

Manage storage account keys.

Commands

az storage account keys list List the primary and secondary keys for a storage account.
az storage account keys renew Regenerates one of the access keys for the specified storage account.

az storage account keys list

List the primary and secondary keys for a storage account.

az storage account keys list --account-name
--resource-group

Examples

List the primary and secondary keys for a storage account.

az storage account keys list -g MyResourceGroup -n MyStorageAccount

Required Parameters

--account-name -n
The storage account name.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

az storage account keys renew

Regenerates one of the access keys for the specified storage account.

az storage account keys renew --account-name
--key {primary, secondary}
--resource-group

Required Parameters

--account-name -n
The storage account name.
--key
The key to regenerate.
accepted values: primary, secondary
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.