Disaster recovery test to move a VM with SRM between to sites.
The failover VM are starting up in secondary site without the TAGs
VMware NSX 4.x.x
VM tag replication policies are created and defined in GM, they are not being pushed to the LMs.
Workaround:
Run the following command to push the replication policies:
curl -k -u admin --request GET 'https://<gm-ip>/global-manager/api/v1/global-infra/vm-tag-replication-policies/url -k -u admin GET 'https://<gm-ip>/global-manager/api/v1/global-infra/vm-tag-replication-policies/<Replication_policies_id'>'curl -k -u admin --request PATCH 'https://<gm-ip>/global-manager/api/v1/global-infra/vm-tag-replication-policies/<Replication_policies_id'>' --header 'Content-Type: application/json' --data 'paste the response of step 1 here'/opt/vmware/bin/corfu_tool_runner.py -o showTable -n ns x -t VmTagReplicationPolicy