how to get secondary endpoint content to primary endpoint

Nelli Tarkiainen 0 Reputation points
2024-12-29T19:27:18.7066667+00:00

How to get secondary endpoint content to primary endpoint in Azure portal?

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,301 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,004 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Marcin Policht 30,740 Reputation points MVP
    2024-12-29T20:23:12.1066667+00:00

    In Azure Storage, the primary endpoint and secondary endpoint refer to different URLs used for accessing the storage account. The primary endpoint is typically used for regular operations, while the secondary endpoint is often used for redundancy or disaster recovery purposes (such as for geo-redundant storage (GRS)).

    1. Understanding the Primary and Secondary Endpoints
      • Primary Endpoint: This is the endpoint for the main region where your storage account is deployed (e.g., https://<accountname>.blob.core.windows.net).
      • Secondary Endpoint: This refers to the endpoint for the secondary region where the data is replicated in case of failure or for geo-redundant storage (GRS) scenarios. It looks like https://<accountname>-secondary.blob.core.windows.net.
    2. Types of Redundancy and How Data Moves There are two main types of redundancy that influence the primary and secondary endpoints:
    • Locally Redundant Storage (LRS): This keeps copies of your data within the same region, so there is no secondary endpoint in this case.
    • Geo-Redundant Storage (GRS): This replicates data from the primary region to a secondary region. In GRS, data is asynchronously copied from the primary region to the secondary region.
    • Geo-zone Redundant Storage (GZRS) and Zone-Redundant Storage (ZRS) also offer redundancy across multiple availability zones or regions.
    1. Accessing Data from the Secondary Endpoint If you want to access data from the secondary region, you will need to use the secondary endpoint. Here's how you can access or copy data from the secondary region:

    Accessing Content from the Secondary Endpoint

    • Azure Portal: The Azure Portal does not directly expose the secondary endpoint's content by default. You can only access the primary endpoint through the portal.
    • Azure Storage Explorer: You can use Azure Storage Explorer to access both the primary and secondary endpoints. To access data from the secondary endpoint:
      1. Add your storage account in Azure Storage Explorer.
      2. Right-click the storage account and select Configure Failover.
      3. From there, you can either check the status of failover or view data in the secondary region.

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

  2. Keshavulu Dasari 2,645 Reputation points Microsoft Vendor
    2024-12-30T01:19:35.5633333+00:00

    Hi Nelli Tarkiainen,

    Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!

    Adding more information to the above response!

    To transfer content from a secondary endpoint to a primary endpoint in Azure, I suggest few steps you can take to troubleshoot the issue,

    1. Access Your Storage Account:
      • Navigate to your storage account in the Azure portal.
    2. Check Geo-Replication Settings:
      • Under the Settings section, select Geo-replication.
      • Ensure your storage account is configured for geo-redundant storage or read-access geo-redundant storage .
    3. Initiate Failover:
      • If you need to switch the secondary endpoint to the primary, you can initiate a failover. This will promote the secondary endpoint to primary.
      • Select Prepare for failover and follow the confirmation steps.
    4. Use Connection Strings:
      • Obtain the connection string for your storage account from the Access Keys section.

    Modify the connection string to point to the primary endpoint by updating the BlobEndpoint parameter.
    For more information:
    https://techcommunity.microsoft.com/blog/azurepaasblog/download-the-blob-using-secondary-endpoint-in-ragrs-storage-account/2403750
    https://docs.azure.cn/en-us/storage/common/storage-initiate-account-failover?tabs=azure-portal


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.           
    User's image

    If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you.


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.