How can we restrict data replication of a VM to single AZ

Ravi Kumar Singh 0 Reputation points
2026-10-23T16:34:36.54+00:00

If an organisation has stretched cluster having approximately 2500 VM's hosted on AVS and its data is replicating in 2 AZ. How we can do a cost optimisation where data for 1000 VM's could be replicated in single availability zone.

Azure VMware Solution

2 answers

Sort by: Most helpful
  1. Ravi Kumar Singh 0 Reputation points
    2026-10-23T17:03:45.6+00:00

    What could be done to reduce the cost in this scenario?

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-10-23T16:35:54.02+00:00

    Assign a vSAN policy with site disaster tolerance set to Preferred or Secondary to the VM namespace and every VMDK; only after all relevant objects are compliant will that VM’s data remain in one site instead of being synchronously mirrored across both availability zones.

    Configure a single-site policy

    For the 1,000 VMs that do not require cross-zone protection:

    1. Create a custom vSAN storage policy with:
      • Site disaster tolerance (vSANSiteDisasterTolerance):
        • Preferred — no site redundancy; keep data on the preferred site, or
        • Secondary — no site redundancy; keep data on the secondary site.
      • Local failures to tolerate (vSANFailuresToTolerate): choose the required within-site protection, such as R1FTT1 for RAID-1 protection against one host failure.
      Do not use None/NoneStretch locality for this purpose. The documented stretched-cluster settings specifically provide Preferred and Secondary for retaining data on one site. Dual is the cross-site mirroring option.^1^
    2. Apply the policy to every existing VMDK of each selected VM using the vCenter storage-policy UI/API. On SDDCs running vCenter 8, AVS supports changing VM storage policies natively through vCenter UI/API.^1^
    3. Apply the policy to the VM namespace/home object as well:
      • Azure portal → AVS private cloud → Run command → Packages → Set-VMStoragePolicy
      • Enter the exact VMName and StoragePolicyName, then select Run.
      • Monitor Notifications for completion.
      Set-VMStoragePolicy does not alter existing disk-level policies. Using this Run Command without step 2 can therefore leave the VMDKs dual-site mirrored.^1^
    4. In vCenter, inspect the VM namespace and each VMDK and confirm:
      • The assigned policy is the intended Preferred or Secondary policy.
      • Every object reports policy compliance.
      • No VMDK remains assigned to the Dual-Site Mirroring policy.
    5. Pilot the change on a small VM group, allow vSAN policy reconfiguration to complete, and then process the remaining VMs in controlled batches. Do not treat the operation as complete while objects are noncompliant or still being reconfigured.

    Availability and SLA impact

    This configuration intentionally removes availability-zone protection for those VMs. A stretched cluster normally uses synchronous vSAN replication so both zones confirm writes; with single-site locality, the affected data has no copy in the other site.^2^

    The AVS stretched-cluster 99.99% infrastructure availability commitment requires Dual-Site Mirroring with local SFTT 1. VMs changed to Preferred or Secondary do not meet that dual-site policy requirement.^3^

    Classify the 1,000 VMs by recovery objective before changing them:

    • Keep critical, zero-RPO workloads on Dual.
    • Use Preferred or Secondary only where an AZ outage and recovery from backup or another DR mechanism is acceptable.
    • Retain an appropriate local SFTT setting if protection from host or disk failure within the selected site is still required.

    Cost effect

    Changing the storage policy does not directly reduce the AVS bill. AVS stretched clusters are charged by deployed nodes, not by how many VMs use dual-site mirroring; the witness and inter-AZ traffic are not separately charged.^3^

    Savings occur only if reduced storage consumption permits host removal while preserving compute, memory, vSAN capacity, and operational headroom. Stretched clusters:

    • Scale in and out only in host pairs.
    • Require equal host counts across both sites.
    • Have a minimum of six hosts.
    • Cannot contain a mixture of stretched and standard clusters.
    • Cannot be converted from stretched to standard; that requires a new cluster/private cloud and workload migration.^2^

    Therefore, model the reclaimable vSAN capacity after policy conversion and confirm that it enables at least one valid two-host scale-in unit; otherwise, the policy change reduces replicated capacity but not the node charge.


    References

    1. Configure a VMware vSAN storage policy
    2. Reliability in Azure VMware Solution (avs-gen1)
    3. Design vSAN stretched clusters
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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