how to create access keys and how to link that to storage account

Vishwa teja Devarakonda 0 Reputation points
2024-11-15T10:05:31.9433333+00:00

Actually i want to create access keys and link to storage account and also provide me the navigation steps how to create and retrieve the secrets and passwords which we stored

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,322 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,246 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Hari Babu Vattepally 715 Reputation points Microsoft Vendor
    2024-11-18T06:11:45.5366667+00:00

    Hi @Vishwa teja Devarakonda

    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:

    1. 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.
    2. 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] 
    
    1. 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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.