@@ -39,8 +39,8 @@ function Get-AbrDiagBackupToCloudConnect {
3939
4040 $CloudConnectInfraArray += $CGServerNode
4141 } catch {
42- Write-Verbose ' Error: Unable to create CloudGateway server Objects. Disabling the section'
43- Write-Debug " Error Message: $ ( $_.Exception.Message ) "
42+ Write-PScriboMessage ' Error: Unable to create CloudGateway server Objects. Disabling the section'
43+ Write-PScriboMessage " Error Message: $ ( $_.Exception.Message ) "
4444 }
4545 if ($CGPoolInfo = Get-AbrBackupCGPoolInfo ) {
4646 try {
@@ -59,8 +59,8 @@ function Get-AbrDiagBackupToCloudConnect {
5959 }
6060 }
6161 } catch {
62- Write-Verbose ' Error: Unable to create CGPoolInfo Objects. Disabling the section'
63- Write-Debug " Error Message: $ ( $_.Exception.Message ) "
62+ Write-PScriboMessage ' Error: Unable to create CGPoolInfo Objects. Disabling the section'
63+ Write-PScriboMessage " Error Message: $ ( $_.Exception.Message ) "
6464 }
6565 try {
6666 if ($CGPoolNode ) {
@@ -76,8 +76,8 @@ function Get-AbrDiagBackupToCloudConnect {
7676 $CloudConnectInfraArray += $CGPoolNodesSubGraph
7777 }
7878 } catch {
79- Write-Verbose ' Error: Unable to create CGPoolInfo SubGraph Objects. Disabling the section'
80- Write-Debug " Error Message: $ ( $_.Exception.Message ) "
79+ Write-PScriboMessage ' Error: Unable to create CGPoolInfo SubGraph Objects. Disabling the section'
80+ Write-PScriboMessage " Error Message: $ ( $_.Exception.Message ) "
8181 }
8282 }
8383
@@ -94,8 +94,8 @@ function Get-AbrDiagBackupToCloudConnect {
9494
9595 $CloudConnectInfraArray += $CCBSNode
9696 } catch {
97- Write-Verbose ' Error: Unable to create CCBSNode Objects. Disabling the section'
98- Write-Debug " Error Message: $ ( $_.Exception.Message ) "
97+ Write-PScriboMessage ' Error: Unable to create CCBSNode Objects. Disabling the section'
98+ Write-PScriboMessage " Error Message: $ ( $_.Exception.Message ) "
9999 }
100100 }
101101 if ($CCRRInfo = Get-AbrBackupCCReplicaResourcesInfo ) {
@@ -111,8 +111,8 @@ function Get-AbrDiagBackupToCloudConnect {
111111
112112 $CloudConnectInfraArray += $CCRRNode
113113 } catch {
114- Write-Verbose ' Error: Unable to create CCRRNode Objects. Disabling the section'
115- Write-Debug " Error Message: $ ( $_.Exception.Message ) "
114+ Write-PScriboMessage ' Error: Unable to create CCRRNode Objects. Disabling the section'
115+ Write-PScriboMessage " Error Message: $ ( $_.Exception.Message ) "
116116 }
117117 }
118118 if ($CCVCDRRInfo = Get-AbrBackupCCvCDReplicaResourcesInfo ) {
@@ -128,8 +128,8 @@ function Get-AbrDiagBackupToCloudConnect {
128128
129129 $CloudConnectInfraArray += $CCVCDRRNode
130130 } catch {
131- Write-Verbose ' Error: Unable to create CCVCDRRNode Objects. Disabling the section'
132- Write-Debug " Error Message: $ ( $_.Exception.Message ) "
131+ Write-PScriboMessage ' Error: Unable to create CCVCDRRNode Objects. Disabling the section'
132+ Write-PScriboMessage " Error Message: $ ( $_.Exception.Message ) "
133133 }
134134 }
135135 }
@@ -144,8 +144,8 @@ function Get-AbrDiagBackupToCloudConnect {
144144 try {
145145 $CGServerSubGraph = Node - Name ' CloudConnectInfra' - Attributes @ {Label = (Add-DiaHtmlSubGraph - Name ' CGServerSubGraph' - ImagesObj $Images - TableArray $CloudConnectInfraArray - Align ' Center' - IconDebug $IconDebug - IconType ' VBR_Cloud_Connect' - Label ' Cloud Connect Infrastructure' - LabelPos ' top' - FontColor $Fontcolor - TableStyle ' dashed,rounded' - TableBorderColor $Edgecolor - TableBorder ' 1' - ColumnSize $CGServerSubGraphcolumnSize - FontSize 24 - FontBold); shape = ' plain' ; fillColor = ' transparent' ; fontsize = 14 ; fontname = ' Segoe Ui' }
146146 } catch {
147- Write-Verbose ' Error: Unable to create CloudConnectInfra SubGraph Objects. Disabling the section'
148- Write-Debug " Error Message: $ ( $_.Exception.Message ) "
147+ Write-PScriboMessage ' Error: Unable to create CloudConnectInfra SubGraph Objects. Disabling the section'
148+ Write-PScriboMessage " Error Message: $ ( $_.Exception.Message ) "
149149 }
150150
151151 if ($CGServerSubGraph ) {
0 commit comments