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)).
- 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
.
- Primary Endpoint: This is the endpoint for the main region where your storage account is deployed (e.g.,
- 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.
- 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:
- Add your storage account in Azure Storage Explorer.
- Right-click the storage account and select Configure Failover.
- 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