From 1daac508b222b4228426024723567b10b8790ca1 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Wed, 16 Dec 2020 09:42:23 -0500 Subject: [PATCH 1/4] Update SiteId Lookup Method --- 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 e8f3a92..d46b818 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-ZertoVirtualizationSite).Where( { $_.VirtualizationSiteName -like $recoverySite }) | Select-Object -ExpandProperty SiteIdentifier + $identifiersTable['recoverySiteIdentifier'] = Get-ZertoVirtualizationSite | Where-Object { $_.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 1513cd4f4b14cf450655b5734a02f366ee8a09e9 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Wed, 16 Dec 2020 09:42:48 -0500 Subject: [PATCH 2/4] Update Synopsis --- docs/New-ZertoVpg.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/New-ZertoVpg.md b/docs/New-ZertoVpg.md index e8a69d4..8c95ba6 100644 --- a/docs/New-ZertoVpg.md +++ b/docs/New-ZertoVpg.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-ZertoVpg ## SYNOPSIS -Creates a New VPG with default settings only. Customization of VM settings can be accomplished with other module level functions. +Creates a New VPG with default settings only. Customization of VM settings can be accomplished with other module level functions. Returns a VpgSettingsIdentifier to be passed into the `Save-ZertoVpgSetting` function to create the VPG. ## SYNTAX From d413374c099fb2b414ae19bf44dff555b113ef3d Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Wed, 16 Dec 2020 09:43:22 -0500 Subject: [PATCH 3/4] CHANGLOG Updates --- CHANGELOG.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a720f31..3d81fa1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,12 @@ and this project is transitioning to [Semantic Versioning](https://semver.org/sp #### Fixed -* Fixed an [issue](https://github.com/ZertoPublic/ZertoApiWrapper/issues/112) where `New-ZertoVpg` would fail when specifying the localsite as the target site. +* Fixed an [issue](https://github.com/ZertoPublic/ZertoApiWrapper/issues/112) where `New-ZertoVpg` would fail when specifying the local site as the target site. +* Updated the method where a Site Identifer is obtained during the `New-ZertoVpg` execution that would occasionally fail on some versions of PowerShell. + +#### Updated + +* Updated `New-ZertoVpg` function [help documentation](https://github.com/ZertoPublic/ZertoApiWrapper/blob/master/docs/New-ZertoVpg.md) to more clearly specify the return value and the requirement to pass it into the `Save-ZertoVpgSetting` function to commit the VPG. ## [1.5.2] From f06157c75e8feee6d218146c4ff22b47ca61487e Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Wed, 16 Dec 2020 13:10:02 -0500 Subject: [PATCH 4/4] Bump Version for Release --- CHANGELOG.md | 2 +- version.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d81fa1..1ff98e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ 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] +## [1.5.3] ### Zerto Virtual Manager diff --git a/version.txt b/version.txt index 4cda8f1..8af85be 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.5.2 +1.5.3