From 9b4ad6d1afc97457aec83b73ed2a2d5c91a13b12 Mon Sep 17 00:00:00 2001 From: Chris Arceneaux Date: Fri, 29 Dec 2023 10:50:10 -0500 Subject: [PATCH 1/3] Updated Cloud Connect identification logic New logic works for both Enterprise and Service Providers. Signed-off-by: Chris Arceneaux --- Src/Private/Get-AbrVbrCloudConnectBS.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectCG.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectCert.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectGP.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectRR.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectStatus.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectTenant.ps1 | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Src/Private/Get-AbrVbrCloudConnectBS.ps1 b/Src/Private/Get-AbrVbrCloudConnectBS.ps1 index 916e5cb..f85d2fc 100644 --- a/Src/Private/Get-AbrVbrCloudConnectBS.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectBS.ps1 @@ -25,7 +25,7 @@ function Get-AbrVbrCloudConnectBS { process { try { - if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -in @("Enterprise")}) { + if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -ne "Disabled"}) { if (((Get-VBRCloudTenant).Resources.Repository).count -gt 0) { $CloudObjects = (Get-VBRCloudTenant).Resources Section -Style Heading3 'Backup Storage' { diff --git a/Src/Private/Get-AbrVbrCloudConnectCG.ps1 b/Src/Private/Get-AbrVbrCloudConnectCG.ps1 index 91cdc9c..b39af27 100644 --- a/Src/Private/Get-AbrVbrCloudConnectCG.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectCG.ps1 @@ -26,7 +26,7 @@ function Get-AbrVbrCloudConnectCG { process { try { - if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -in @("Enterprise")}) { + if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -ne "Disabled"}) { if ((Get-VBRCloudGateway).count -gt 0) { Section -Style Heading3 'Cloud Gateways' { Paragraph "The following section provides summary information about configured Cloud Gateways." diff --git a/Src/Private/Get-AbrVbrCloudConnectCert.ps1 b/Src/Private/Get-AbrVbrCloudConnectCert.ps1 index 83bed91..a5bef78 100644 --- a/Src/Private/Get-AbrVbrCloudConnectCert.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectCert.ps1 @@ -26,7 +26,7 @@ function Get-AbrVbrCloudConnectCert { process { try { - if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -in @("Enterprise")}) { + if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -ne "Disabled"}) { if ((Get-VBRCloudGatewayCertificate).count -gt 0) { Section -Style Heading3 'Gateway Certificate' { Paragraph "The following section provides information about Cloud Gateways SSL Certificate." diff --git a/Src/Private/Get-AbrVbrCloudConnectGP.ps1 b/Src/Private/Get-AbrVbrCloudConnectGP.ps1 index cc41a88..f716faf 100644 --- a/Src/Private/Get-AbrVbrCloudConnectGP.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectGP.ps1 @@ -26,7 +26,7 @@ function Get-AbrVbrCloudConnectGP { process { try { - if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -in @("Enterprise")}) { + if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -ne "Disabled"}) { if ((Get-VBRCloudGatewayPool).count -gt 0) { Section -Style Heading3 'Gateways Pools' { Paragraph "The following section provides summary information about configured Cloud Gateways Pools." diff --git a/Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 b/Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 index 6e46781..38952e8 100644 --- a/Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 @@ -25,7 +25,7 @@ function Get-AbrVbrCloudConnectPublicIP { } process { - if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -in @("Enterprise")}) { + if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -ne "Disabled"}) { if ((Get-VBRCloudGatewayPool).count -gt 0) { Section -Style Heading3 'Public IP' { Paragraph "The following section provides information about Cloud Public IP." diff --git a/Src/Private/Get-AbrVbrCloudConnectRR.ps1 b/Src/Private/Get-AbrVbrCloudConnectRR.ps1 index 5689a47..d9768fd 100644 --- a/Src/Private/Get-AbrVbrCloudConnectRR.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectRR.ps1 @@ -25,7 +25,7 @@ function Get-AbrVbrCloudConnectRR { } process { - if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -in @("Enterprise")}) { + if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -ne "Disabled"}) { if ((Get-VBRCloudHardwarePlan).count -gt 0) { Section -Style Heading3 'Replica Resources' { Paragraph "The following table provides a summary of Replica Resources." diff --git a/Src/Private/Get-AbrVbrCloudConnectStatus.ps1 b/Src/Private/Get-AbrVbrCloudConnectStatus.ps1 index fe271dc..4e54cd9 100644 --- a/Src/Private/Get-AbrVbrCloudConnectStatus.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectStatus.ps1 @@ -25,7 +25,7 @@ function Get-AbrVbrCloudConnectStatus { } process { - if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -in @("Enterprise")}) { + if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -ne "Disabled"}) { if ((Get-VBRCloudInfrastructureState).count -gt 0) { Section -Style Heading3 'Service Status' { Paragraph "The following section provides information about Cloud Gateways SSL Certificate." diff --git a/Src/Private/Get-AbrVbrCloudConnectTenant.ps1 b/Src/Private/Get-AbrVbrCloudConnectTenant.ps1 index 786f4c0..2dd0dc9 100644 --- a/Src/Private/Get-AbrVbrCloudConnectTenant.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectTenant.ps1 @@ -26,7 +26,7 @@ function Get-AbrVbrCloudConnectTenant { process { try { - if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -in @("Enterprise")}) { + if (Get-VBRInstalledLicense | Where-Object {$_.CloudConnect -ne "Disabled"}) { $CloudObjects = Get-VBRCloudTenant | Sort-Object -Property Name if ($CloudObjects) { Section -Style Heading3 'Tenants' { From 58c488111fae1c3783508153ffe0884532596b82 Mon Sep 17 00:00:00 2001 From: Chris Arceneaux Date: Fri, 29 Dec 2023 11:05:03 -0500 Subject: [PATCH 2/3] Incrementing versions Signed-off-by: Chris Arceneaux --- AsBuiltReport.Veeam.VBR.psd1 | 2 +- Src/Private/Get-AbrVbrCloudConnectBS.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectCG.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectCert.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectGP.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectRR.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectStatus.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectTenant.ps1 | 2 +- Src/Public/Invoke-AsBuiltReport.Veeam.VBR.ps1 | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/AsBuiltReport.Veeam.VBR.psd1 b/AsBuiltReport.Veeam.VBR.psd1 index 2d2134c..a5df9ce 100644 --- a/AsBuiltReport.Veeam.VBR.psd1 +++ b/AsBuiltReport.Veeam.VBR.psd1 @@ -12,7 +12,7 @@ RootModule = 'AsBuiltReport.Veeam.VBR.psm1' # Version number of this module. -ModuleVersion = '0.8.3' +ModuleVersion = '0.8.4' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/Src/Private/Get-AbrVbrCloudConnectBS.ps1 b/Src/Private/Get-AbrVbrCloudConnectBS.ps1 index f85d2fc..a1eb397 100644 --- a/Src/Private/Get-AbrVbrCloudConnectBS.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectBS.ps1 @@ -5,7 +5,7 @@ function Get-AbrVbrCloudConnectBS { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.7.1 + Version: 0.7.2 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Private/Get-AbrVbrCloudConnectCG.ps1 b/Src/Private/Get-AbrVbrCloudConnectCG.ps1 index b39af27..21e2d13 100644 --- a/Src/Private/Get-AbrVbrCloudConnectCG.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectCG.ps1 @@ -6,7 +6,7 @@ function Get-AbrVbrCloudConnectCG { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.8.0 + Version: 0.8.1 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Private/Get-AbrVbrCloudConnectCert.ps1 b/Src/Private/Get-AbrVbrCloudConnectCert.ps1 index a5bef78..0c1691c 100644 --- a/Src/Private/Get-AbrVbrCloudConnectCert.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectCert.ps1 @@ -6,7 +6,7 @@ function Get-AbrVbrCloudConnectCert { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.7.1 + Version: 0.7.2 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Private/Get-AbrVbrCloudConnectGP.ps1 b/Src/Private/Get-AbrVbrCloudConnectGP.ps1 index f716faf..914d0b2 100644 --- a/Src/Private/Get-AbrVbrCloudConnectGP.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectGP.ps1 @@ -6,7 +6,7 @@ function Get-AbrVbrCloudConnectGP { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.8.0 + Version: 0.8.1 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 b/Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 index 38952e8..0bdd675 100644 --- a/Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 @@ -6,7 +6,7 @@ function Get-AbrVbrCloudConnectPublicIP { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.7.1 + Version: 0.7.2 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Private/Get-AbrVbrCloudConnectRR.ps1 b/Src/Private/Get-AbrVbrCloudConnectRR.ps1 index d9768fd..ee0d4ea 100644 --- a/Src/Private/Get-AbrVbrCloudConnectRR.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectRR.ps1 @@ -6,7 +6,7 @@ function Get-AbrVbrCloudConnectRR { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.7.1 + Version: 0.7.2 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Private/Get-AbrVbrCloudConnectStatus.ps1 b/Src/Private/Get-AbrVbrCloudConnectStatus.ps1 index 4e54cd9..2686d26 100644 --- a/Src/Private/Get-AbrVbrCloudConnectStatus.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectStatus.ps1 @@ -6,7 +6,7 @@ function Get-AbrVbrCloudConnectStatus { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.7.1 + Version: 0.7.2 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Private/Get-AbrVbrCloudConnectTenant.ps1 b/Src/Private/Get-AbrVbrCloudConnectTenant.ps1 index 2dd0dc9..2a807c2 100644 --- a/Src/Private/Get-AbrVbrCloudConnectTenant.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectTenant.ps1 @@ -6,7 +6,7 @@ function Get-AbrVbrCloudConnectTenant { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.8.0 + Version: 0.8.1 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Public/Invoke-AsBuiltReport.Veeam.VBR.ps1 b/Src/Public/Invoke-AsBuiltReport.Veeam.VBR.ps1 index 6a8c7ef..6772688 100644 --- a/Src/Public/Invoke-AsBuiltReport.Veeam.VBR.ps1 +++ b/Src/Public/Invoke-AsBuiltReport.Veeam.VBR.ps1 @@ -5,7 +5,7 @@ function Invoke-AsBuiltReport.Veeam.VBR { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.8.3 + Version: 0.8.4 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux From b327739bd79ae3b118b5f4979883c410c2507b02 Mon Sep 17 00:00:00 2001 From: Chris Arceneaux Date: Fri, 29 Dec 2023 12:09:00 -0500 Subject: [PATCH 3/3] Applying requested version changes Signed-off-by: Chris Arceneaux --- Src/Private/Get-AbrVbrCloudConnectBS.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectCG.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectCert.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectGP.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectRR.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectStatus.ps1 | 2 +- Src/Private/Get-AbrVbrCloudConnectTenant.ps1 | 2 +- Src/Public/Invoke-AsBuiltReport.Veeam.VBR.ps1 | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Src/Private/Get-AbrVbrCloudConnectBS.ps1 b/Src/Private/Get-AbrVbrCloudConnectBS.ps1 index a1eb397..9f7000f 100644 --- a/Src/Private/Get-AbrVbrCloudConnectBS.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectBS.ps1 @@ -5,7 +5,7 @@ function Get-AbrVbrCloudConnectBS { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.7.2 + Version: 0.8.3 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Private/Get-AbrVbrCloudConnectCG.ps1 b/Src/Private/Get-AbrVbrCloudConnectCG.ps1 index 21e2d13..b882331 100644 --- a/Src/Private/Get-AbrVbrCloudConnectCG.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectCG.ps1 @@ -6,7 +6,7 @@ function Get-AbrVbrCloudConnectCG { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.8.1 + Version: 0.8.3 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Private/Get-AbrVbrCloudConnectCert.ps1 b/Src/Private/Get-AbrVbrCloudConnectCert.ps1 index 0c1691c..1fffc8f 100644 --- a/Src/Private/Get-AbrVbrCloudConnectCert.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectCert.ps1 @@ -6,7 +6,7 @@ function Get-AbrVbrCloudConnectCert { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.7.2 + Version: 0.8.3 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Private/Get-AbrVbrCloudConnectGP.ps1 b/Src/Private/Get-AbrVbrCloudConnectGP.ps1 index 914d0b2..793b892 100644 --- a/Src/Private/Get-AbrVbrCloudConnectGP.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectGP.ps1 @@ -6,7 +6,7 @@ function Get-AbrVbrCloudConnectGP { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.8.1 + Version: 0.8.3 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 b/Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 index 0bdd675..12a2b7b 100644 --- a/Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectPublicIP.ps1 @@ -6,7 +6,7 @@ function Get-AbrVbrCloudConnectPublicIP { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.7.2 + Version: 0.8.3 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Private/Get-AbrVbrCloudConnectRR.ps1 b/Src/Private/Get-AbrVbrCloudConnectRR.ps1 index ee0d4ea..d1058d1 100644 --- a/Src/Private/Get-AbrVbrCloudConnectRR.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectRR.ps1 @@ -6,7 +6,7 @@ function Get-AbrVbrCloudConnectRR { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.7.2 + Version: 0.8.3 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Private/Get-AbrVbrCloudConnectStatus.ps1 b/Src/Private/Get-AbrVbrCloudConnectStatus.ps1 index 2686d26..462653d 100644 --- a/Src/Private/Get-AbrVbrCloudConnectStatus.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectStatus.ps1 @@ -6,7 +6,7 @@ function Get-AbrVbrCloudConnectStatus { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.7.2 + Version: 0.8.3 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Private/Get-AbrVbrCloudConnectTenant.ps1 b/Src/Private/Get-AbrVbrCloudConnectTenant.ps1 index 2a807c2..aab8d9b 100644 --- a/Src/Private/Get-AbrVbrCloudConnectTenant.ps1 +++ b/Src/Private/Get-AbrVbrCloudConnectTenant.ps1 @@ -6,7 +6,7 @@ function Get-AbrVbrCloudConnectTenant { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.8.1 + Version: 0.8.3 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux diff --git a/Src/Public/Invoke-AsBuiltReport.Veeam.VBR.ps1 b/Src/Public/Invoke-AsBuiltReport.Veeam.VBR.ps1 index 6772688..6a8c7ef 100644 --- a/Src/Public/Invoke-AsBuiltReport.Veeam.VBR.ps1 +++ b/Src/Public/Invoke-AsBuiltReport.Veeam.VBR.ps1 @@ -5,7 +5,7 @@ function Invoke-AsBuiltReport.Veeam.VBR { .DESCRIPTION Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo. .NOTES - Version: 0.8.4 + Version: 0.8.3 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux