Documentation forSecurity Event Manager

Get the storage access key

The storage account key is a 512b access key used for authentication when accessing the storage account. It’s generated automatically when the storage account is created.

List storage account keys in Azure CLI with the command below:

az storage account keys list --account-name <STORAGE_ACCOUNT> --resource-group <RESOURCE_GROUP>

Replace the STORAGE_ACCOUNT and RESOURCE_GROUP strings with the storage account and resource group names obtained in the previous section. You can find your storage account and resource group in the Azure Portal under Home > Storage accounts.

Remove angle brackets (< >) when entering the actual account and resource group names.

The command will list two storage account keys in JSON format (default format, but can be changed): primary (key1) and secondary (key2). You can use either key.

See the example below: