ZertoPublic / ZertoApiWrapper

PowerShell wrapper for Zerto Virtual Manager API
GNU General Public License v3.0
16 stars 12 forks source link

New-ZertoVPG does not work when replicating to same site #112

Closed sleeuwenhoek closed 3 years ago

sleeuwenhoek commented 3 years ago

New-ZertoVPG does not work when replicating to same site

Expected Behavior

New VPG is created

Current Behavior

Error because Get-ZertoPeerSite does not show local Site/has as an option for local site

Possible Solution

Adjust Get-ZertoPeerSite to include local site Add option to New-ZertoVPG to use local site

Steps to Reproduce (for bugs)

Create new VPG with a target to another cluster in the same site

Context

Had to create VPG manually and use Copy-ZertoVPG for subsequent VPGs

Your Environment

wcarroll commented 3 years ago

Hi @sleeuwenhoek

Thanks for bringing this to my attention. I'll dig in and see what I can do to get this updated.

Thanks.

wcarroll commented 3 years ago

@sleeuwenhoek ,

I was able to find a method that will make minimal changes to the workflow but will allow for local replication to be set up. This fix is present PR #113 and should get rolled out to the powershell gallery Mondayish of next week. I have a few other fixes I want to include in the update.

Thanks.