When mapping the VMs to add to the VPG within the copy-zertovpg function, I expect the VMs to populate no matter which ZVM I am connected to (protected vs recovery). I work for an MSP and don't have access to a lot of protected sites due to customer security concerns. If you are copying vpg settings to create a new vpg, the vms available from the protected site of the copied VPG should be able to be found, just like in the UI action.
Additionally, VPG settings PUTs and POSTs fail without the vdcstorageProfile added to the VPG settings object, so I will throw that in my solutions as well.
Current Behavior
When mapping the VMs to add to the VPG, The VMs only populate from the local site. If you are connected to the recovery site, the function will not find the VMs.
I suggest that the VMs be populated from the protected site of the source vpg.
Possible Solution
The existing functions Get-ZertoUnprotectedVm has a 'site' parameter and the Get-ZertoProtectedVM has a 'protectedSiteIdentifier' parameter.
I suggest using those parameters to grab the right VMs from the protected site.
Expected Behavior
When mapping the VMs to add to the VPG within the copy-zertovpg function, I expect the VMs to populate no matter which ZVM I am connected to (protected vs recovery). I work for an MSP and don't have access to a lot of protected sites due to customer security concerns. If you are copying vpg settings to create a new vpg, the vms available from the protected site of the copied VPG should be able to be found, just like in the UI action.
Additionally, VPG settings PUTs and POSTs fail without the vdcstorageProfile added to the VPG settings object, so I will throw that in my solutions as well.
Current Behavior
When mapping the VMs to add to the VPG, The VMs only populate from the local site. If you are connected to the recovery site, the function will not find the VMs. I suggest that the VMs be populated from the protected site of the source vpg.
Possible Solution
The existing functions Get-ZertoUnprotectedVm has a 'site' parameter and the Get-ZertoProtectedVM has a 'protectedSiteIdentifier' parameter. I suggest using those parameters to grab the right VMs from the protected site.
Steps to Reproduce (for bugs)
Context
This issue has impaired my ability to bulk add VPGs from the protected site. A customer wants to add 100 + VPGs and the VMs are not found.
Your Environment
I am working on Mulittenant cloud ZVMA connected to VCD