To ensure that the two NSX-Т Edge appliances run on different ESXi hosts in VMware Cloud Foundation, create a vSphere DRS VM-host anti-affinity rule. If a failure occurs on one of the hosts, the appliance on the other host continues providing routing services.

Because you allocate an NSX-T Edge pair to each availability zone, you configure a rule for each zone.

You repeat this procedure twice to create the anti-affinity rules for both availability zones.
Setting Value for Availability Zone 1 Value for Availability Zone 2
Name anti-affinity-rule-az1-ecmpedges anti-affinity-rule-az2-ecmpedges
Enable rule Selected Selected
Type Separate Virtual Machines Separate Virtual Machines
  • sfo01wesg01
  • sfo01wesg02
  • sfo02wesg01
  • sfo02wesg02


  1. In a Web browser, log in to vCenter Server by using the vSphere Client.
    Setting Value
    URL https://sfo01m01vc01.sfo01.rainpole.local/ui
    User name administrator@vsphere.local
    Password vsphere_admin_password
  2. In the Hosts and Clusters inventory, expand the sfo01w01vc01.sfo01.rainpole.local tree and expand the sfo01-w01dc tree.
  3. Select the sfo01-w01-shared01 cluster and click the Configure tab.
  4. In the Configuration section, select VM/Host rules and click Add.
  5. In the  sfo01-w01-shared01- Create VM/Host rule dialog box, configure the settings for Availability Zone 1 and click Add.
    Setting Value
    Name anti-affinity-rule-az1-ecmpedges
    Enable rule Selected
    Type Separate Virtual Machines
  6. In the Add rule member dialog box, select sfo01wesg01 and sfo01wesg02, and click OK.
  7. In the sfo01-w01-shared01- Create VM/Host rule dialog box, click OK.
  8. Repeat this procedure to create the anti-affinity rule for Availability Zone 2.