Azure-Samples/storage-blob-dotnet-getting-started

Should secondary uri for a blob just work?

Opened this issue · 1 comments

In C# you can grab the primary URI off a blob as well as the SecondaryUri. The secondary URI appears to be the same as the primary except with a modified subdomain. https://examplecloudstorage.blob.core.windows.net/... vs https://examplecloudstorage-secondary.blob.core.windows.net/...

I'm finding the while the primary uri works fine, the secondary returns a DNS error not found. Is there something special that needs to be done to enable the secondary URI on a blob or container?

The secondary URI is used when the account is set to RA-GRS -- read-access geo redundant storage. This means that every time data is written to the primary, it is replicated to the secondary asynchronously, and you can read from the secondary. This will not work unless the replication is set to RA-GRS.