From af33715f02dd1886c30f60fc3f7a281b75a3ba23 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Wed, 9 Dec 2020 16:13:50 -0500 Subject: [PATCH 1/2] SiteId Query to VirtualizationSites Fixes #112 --- ZertoApiWrapper/Public/New-ZertoVpg.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZertoApiWrapper/Public/New-ZertoVpg.ps1 b/ZertoApiWrapper/Public/New-ZertoVpg.ps1 index 582e0cc..e8f3a92 100644 --- a/ZertoApiWrapper/Public/New-ZertoVpg.ps1 +++ b/ZertoApiWrapper/Public/New-ZertoVpg.ps1 @@ -165,7 +165,7 @@ function New-ZertoVpg { begin { # Create an identifiers table, and start converting names to identifiers. $identifiersTable = @{ } - $identifiersTable['recoverySiteIdentifier'] = (Get-ZertoPeerSite).Where({$_.PeerSiteName -like $recoverySite}) | Select-Object -ExpandProperty SiteIdentifier + $identifiersTable['recoverySiteIdentifier'] = (Get-ZertoVirtualizationSite).Where( { $_.VirtualizationSiteName -like $recoverySite }) | Select-Object -ExpandProperty SiteIdentifier $peerSiteNetworks = $(Get-ZertoVirtualizationSite -siteIdentifier $identifiersTable['recoverySiteIdentifier'] -networks) $identifiersTable['failoverNetworkIdentifier'] = $peerSiteNetworks | Where-Object { $_.VirtualizationNetworkName -like $recoveryNetwork } | Select-Object -ExpandProperty NetworkIdentifier $identifiersTable['testNetworkIdentifier'] = $peerSiteNetworks | Where-Object { $_.VirtualizationNetworkName -like $testNetwork } | Select-Object -ExpandProperty NetworkIdentifier From 06e81b46d690d5de3a04106fbbb7cf38947867b6 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Wed, 9 Dec 2020 17:09:53 -0500 Subject: [PATCH 2/2] Update CHANGELOG for #112 --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 835a733..a720f31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project is transitioning to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Zerto Virtual Manager + +#### Fixed + +* Fixed an [issue](https://github.com/ZertoPublic/ZertoApiWrapper/issues/112) where `New-ZertoVpg` would fail when specifying the localsite as the target site. + ## [1.5.2] ### Zerto Virtual Manager