Greeting! Welcome to Microsoft Q&A Forum and thanks for posting your query here!
Apologies for delay in reply!
To create access keys for your Azure storage account, Azure automatically generates two 512-bit storage account access keys when you create the account. You can view and copy these keys through the Azure portal, PowerShell, or Azure CLI.
Steps to Create and Retrieve Access Keys:
- Using Azure Portal:
- Go to your storage account in the Azure portal.
- Under Security + networking, select Access keys.
- Your account access keys will be displayed, and you can select Show keys to view them.
- You can copy the key value or the entire connection string.
- Using PowerShell:
- Use the
Get-AzStorageAccountKey
command to retrieve your account access keys. example:
$storageAccountKey = (Get-AzStorageAccountKey -ResourceGroupName <resource-group> -Name <storage-account>).Value[0]
- Using Azure CLI:
- Use
az storage account keys list
command to list your account access keys. example:
az storage account keys list --resource-group <resource-group> --account-name <storage-account>
Linking Access Keys to Storage Account:
The access keys are inherently linked to your storage account as they are used to authorize access to the data within that account. You can use these keys in your application code to connect to Azure Storage.
Managing Secrets and Passwords:
For managing secrets and passwords, it is recommended to use Azure Key Vault. This allows you to securely store and manage sensitive information. You can create a Key Vault and store your secrets there, providing a secure way to manage sensitive information.
Please refer the below documents which will guide you with additional steps.
I hope this helps! Let me know in the comments if you have further questions. Comment is the fastest way to reach the experts for any questions or help you need.
Please don’t forget to Accept Answer and hit Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members for remediation for similar issues.