MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.29k stars 21.47k forks source link

Specify availability zone for storage account #71526

Closed stingster closed 3 years ago

stingster commented 3 years ago

Is it possible to set up a specific availability zone for a storage account? (As it is the case with kubernetes-cluster for example)

Thank you.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

tamram commented 3 years ago

@stingster - You can set up zone-redundant storage (ZRS) in a supported region to use availability zones with Azure Storage. See [Zone-redundant storage](https://docs.microsoft.com/azure/storage/common/storage-redundancy#zone-redundant-storage] for details.

please-close

stingster commented 3 years ago

@tamram I think I should have been more specific.

We selected LRS + OR as a redundancy option. Do you mean that ZRS is the only option where one is allowed to select the availability zone for the storage account?

tamram commented 3 years ago

@stingster - yes, in order to use an availability zone in the primary region, your account must use ZRS or GZRS (the geo-redundant version of ZRS).

Only ZRS/GZRS uses availability zones, and only in the primary region.

stingster commented 3 years ago

@tamram thank you for your prompt reply!

Can you please be so kind to answer a couple more questions:

  1. Is an LRS storage account wholly hosted within a single availability zone or there is no guarantee for that?
  2. If it is, is there a way to determine in which zone is hosted after creation then? (I think you've already said there's no way to request a specific AZ on the creation of an LRS account)
tamram commented 3 years ago

@stingster -

  1. An LRS account is not hosted within an availability zone at all. Only ZRS accounts (or GZRS, which also uses ZRS in the primary region) use Azure availability zones.
  2. There's no way to pick a zone when you create the account. You can only select the primary region. After the account is created, you can see the region in the account overview in the portal.

Feel free to tell me more about what you are trying to accomplish, and perhaps I can provide some guidance.

stingster commented 3 years ago

@tamram - removing info as the issue is solved now

Thank you for your patience 🥇

tamram commented 3 years ago

@stingster - It sounds to me like the best offering we have for you would be ZRS or GZRS/RA-GZRS.

LRS doesn't use Azure availability zones technology. It copies the data three times within the same data center, but not across zones.

It would be helpful if our team could contact you. Is there a way we can reach you?

stingster commented 3 years ago

@tamram

removing info as the issue is solved now

Thank you once again you have been really helpful.

tamram commented 3 years ago

@stingster - Glad I could help. I'm now editing my previous message to remove my contact info.

sluhn-woodrum commented 1 year ago

@tamram - I know this is an old post, but I have a similar question. Here's the scenario: I have a cluster of VM's that are in a specific availability zone. Those cluster of VM's are a 3rd party backup system, and for performance reasons, need to be in the same AZ. They use blob storage (LRS) as their backup target. Geo-redundancy is created with another cluster in another region and using application replication, not blob replication. It would be ideal to be able to create the LRS storage account specifically in zone 2 where the cluster of VM's is (for performance reasons). I realize LRS doesn't live in a specific AZ today, but it must live within 1 of the 3 zones, just not defined in the zone. So it would be great if we could pick what AZ and LRS storage account could be based in. Thoughts? Thanks!