SOP Storage Account Keys
SOP Storage Account Keys
SOP # 3
Two Keys:
Azure provides two 512-bit keys for every storage account. You can either one of these in
your authorization header. Users with permission to
Microsoft.Storage/storageAccounts/listkeys/action can view, read or copy the key via
Azure portal, Azure CLI and Azure PowerShell.
1. Purpose
The keys can be used to authorize access to data in your storage account via
Shared Key authorization, or via SAS tokens that are signed with the shared key.
2. Scope
Storage account access keys provide full access to the configuration of a storage
account, as well as the data. Always be careful to protect your access keys. Use Azure
Key Vault to manage and rotate your keys securely. Access to the shared key grants a
user full access to a storage accounts configuration and its data.
We can retrieve and regenerate Storage Account Keys by three methods first one we can
do it on Azure portal, second one by using commands in Azure CLI and third one by
using Azure CLI.
1) Azure Portal.
In storage account search for Access Keys and click on Access Keys.
Account keys controls access to the data plane for that storage account.
Each storage account has to keys Key1 and Key2 in the Azure Portal.
These keys can regenerated manually using one of several methods including but not
limited using the Azure Portal, PowerShell the Azure CLI or programmatically using
the .NET storage client library of the azure storage services REST API,
Reasons to regenerate keys.
Scheduled regeneration.
Preventing access during an app hack.
Application that retain storage keys granting limited access.
Once you select the connection method it will ask you to provide a display name,
account name, access key and storage domain then click on next and connect.
You can see that successfully added new connection through Account name Key.
Click on storage then go to blob-storage, here we can see containers that are
working in storage account.
Click on container and it will open a one window with all the files. So we can easily
upload and download files.
Right click on any one file and select Open then the file will open successfully.
Once you select the connection method it will ask you to provide a display name and
connection string then click on next and connect.
You can see that successfully added new connection through Connection String.
Click on storage then go to file-share, here we can see files that are uploaded in
storage account.
Right click on any one file and select Open then the file will open successfully.