Skip to content

Commit 8d07f20

Browse files
authored
Merge pull request #213 from AsBuiltReport/dev
v0.8.19
2 parents 2b3e792 + 827222a commit 8d07f20

File tree

5 files changed

+37
-61
lines changed

5 files changed

+37
-61
lines changed

AsBuiltReport.Veeam.VBR.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'AsBuiltReport.Veeam.VBR.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '0.8.18'
15+
ModuleVersion = '0.8.19'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
@@ -67,7 +67,7 @@
6767
}
6868
@{
6969
ModuleName = 'Veeam.Diagrammer';
70-
ModuleVersion = '0.6.24'
70+
ModuleVersion = '0.6.26'
7171
}
7272
)
7373

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
##### This project is community maintained and has no sponsorship from Veeam, its employees or any of its affiliates.
99

10+
## [0.8.19] - 2025-04-30
11+
12+
### Changed
13+
14+
- Bump module version to 0.8.19
15+
- Bump Veeam.Diagrammer module version to 0.6.26
16+
- Enhance diagram generation messages
17+
- Improve diagram image quality settings
18+
1019
## [0.8.18] - 2025-04-27
1120

1221
### Added

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,12 @@ The **Report** schema provides configuration of the Veeam VBR report information
157157

158158
The **Options** schema allows certain options within the report to be toggled on or off.
159159

160-
| Sub-Schema | Setting | Default | Description |
161160
| Sub-Schema | Setting | Default | Description |
162161
| ----------------------- | -------------------------- | ------- | ----------------------------------------------------------------------------- |
163162
| BackupServerPort | TCP Port | 9392 | Set the backup server service's custom port. |
164163
| DiagramTheme | string | White | Set the diagram theme (Black/White/Neon) |
165164
| DiagramWaterMark | string | empty | Set the diagram watermark |
166-
| DiagramType | Array | true | Set the diagram type |
165+
| DiagramType | true / false | true | Toggle to enable/disable the export of individual diagram diagrams |
167166
| EnableDiagrams | true / false | false | Toggle to enable/disable infrastructure diagrams |
168167
| EnableDiagramsDebug | true / false | false | Toggle to enable/disable diagram debug option |
169168
| EnableDiagramSignature | true / false | false | Toggle to enable/disable diagram signature (bottom right corner) |

Src/Private/Get-AbrVbrDiagrammer.ps1

Lines changed: 22 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function Get-AbrVbrDiagrammer {
66
.DESCRIPTION
77
Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo.
88
.NOTES
9-
Version: 0.8.17
9+
Version: 0.8.19
1010
Author: Jonathan Colon
1111
Twitter: @jcolonfzenpr
1212
Github: rebelinux
@@ -19,7 +19,7 @@ function Get-AbrVbrDiagrammer {
1919
param (
2020
[Parameter(Mandatory = $false, Position = 0)]
2121
[ValidateNotNullOrEmpty()]
22-
[ValidateSet('Backup-to-Tape', 'Backup-to-File-Proxy', 'Backup-to-HyperV-Proxy', 'Backup-to-vSphere-Proxy', 'Backup-to-Repository', 'Backup-to-Sobr', 'Backup-to-WanAccelerator', 'Backup-to-ProtectedGroup', 'Backup-Infrastructure', 'All')]
22+
[ValidateSet('Backup-to-Tape', 'Backup-to-File-Proxy', 'Backup-to-HyperV-Proxy', 'Backup-to-vSphere-Proxy', 'Backup-to-Repository', 'Backup-to-Sobr', 'Backup-to-WanAccelerator', 'Backup-to-ProtectedGroup', 'Backup-Infrastructure')]
2323
[string]$DiagramType = 'Backup-Infrastructure',
2424
[Parameter(Mandatory = $false, Position = 1)]
2525
[ValidateNotNullOrEmpty()]
@@ -29,7 +29,7 @@ function Get-AbrVbrDiagrammer {
2929
)
3030

3131
begin {
32-
Write-PScriboMessage "Getting Veeam diagram for $System."
32+
Write-PScriboMessage "Generating Veeam diagram ($DiagramType) from Backup Server $System."
3333
}
3434

3535
process {
@@ -88,66 +88,34 @@ function Get-AbrVbrDiagrammer {
8888
$DiagramParams.Add('AuthorName', $Options.SignatureAuthorName)
8989
$DiagramParams.Add('CompanyName', $Options.SignatureCompanyName)
9090
}
91-
92-
if ($DiagramType -eq 'All') {
93-
try {
94-
foreach ($DiagramTypeItem in $DiagramTypeHash.Keys) {
95-
foreach ($Format in $DiagramFormat) {
96-
if ($Format -eq "base64") {
97-
$Graph = New-VeeamDiagram @DiagramParams -DiagramType $DiagramTypeItem -Format $Format
98-
if ($Graph) {
99-
$Graph
100-
}
101-
} else {
102-
$Graph = New-VeeamDiagram @DiagramParams -DiagramType $DiagramTypeItem -Format $Format -Filename "AsBuiltReport.Veeam.VBR-($($DiagramTypeHash[$DiagramTypeItem])).$($Format)"
103-
if ($Graph) {
104-
if ($ExportPath) {
105-
$FilePath = Join-Path -Path $OutputFolderPath -ChildPath "AsBuiltReport.Veeam.VBR-($($DiagramTypeHash[$DiagramTypeItem])).$($Format)"
106-
if (Test-Path -Path $FilePath) {
107-
$FilePath
108-
} else {
109-
Write-PScriboMessage -IsWarning "Unable to export the $DiagramTypeHash Diagram: $($_.Exception.Message)"
110-
}
111-
} else {
112-
Write-Information "Saved 'AsBuiltReport.Veeam.VBR-($($DiagramTypeHash[$DiagramTypeItem])).$($Format)' diagram to '$($OutputFolderPath)'." -InformationAction Continue
113-
}
114-
}
115-
}
91+
try {
92+
foreach ($Format in $DiagramFormat) {
93+
if ($Format -eq "base64") {
94+
$Graph = New-VeeamDiagram @DiagramParams -DiagramType $DiagramType -Format $Format
95+
if ($Graph) {
96+
$Graph
11697
}
117-
}
118-
} catch {
119-
Write-PScriboMessage -IsWarning "Unable to export the $DiagramTypeHash Diagram: $($_.Exception.Message)"
120-
}
121-
} else {
122-
try {
123-
foreach ($Format in $DiagramFormat) {
124-
if ($Format -eq "base64") {
125-
$Graph = New-VeeamDiagram @DiagramParams -DiagramType $DiagramType -Format $Format
126-
if ($Graph) {
127-
$Graph
128-
}
129-
} else {
130-
$Graph = New-VeeamDiagram @DiagramParams -DiagramType $DiagramType -Format $Format -Filename "AsBuiltReport.Veeam.VBR-($($DiagramTypeHash[$DiagramType])).$($Format)"
131-
if ($Graph) {
132-
if ($ExportPath) {
133-
$FilePath = Join-Path -Path $OutputFolderPath -ChildPath "AsBuiltReport.Veeam.VBR-($($DiagramTypeHash[$DiagramType])).$($Format)"
134-
if (Test-Path -Path $FilePath) {
135-
$FilePath
136-
} else {
137-
Write-PScriboMessage -IsWarning "Unable to export the $DiagramTypeHash Diagram: $($_.Exception.Message)"
138-
}
98+
} else {
99+
$Graph = New-VeeamDiagram @DiagramParams -DiagramType $DiagramType -Format $Format -Filename "AsBuiltReport.Veeam.VBR-$($DiagramTypeHash[$DiagramType]).$($Format)"
100+
if ($Graph) {
101+
if ($ExportPath) {
102+
$FilePath = Join-Path -Path $OutputFolderPath -ChildPath "AsBuiltReport.Veeam.VBR-$($DiagramTypeHash[$DiagramType]).$($Format)"
103+
if (Test-Path -Path $FilePath) {
104+
$FilePath
139105
} else {
140-
Write-Information "Saved 'AsBuiltReport.Veeam.VBR-($($DiagramTypeHash[$DiagramType])).$($Format)' diagram to '$($OutputFolderPath)'." -InformationAction Continue
106+
Write-PScriboMessage -IsWarning "Unable to export the $DiagramType Diagram: $($_.Exception.Message)"
141107
}
108+
} else {
109+
Write-Information "Saved 'AsBuiltReport.Veeam.VBR-$($DiagramTypeHash[$DiagramType]).$($Format)' diagram to '$($OutputFolderPath)'." -InformationAction Continue
142110
}
143111
}
144112
}
145-
} catch {
146-
Write-PScriboMessage -IsWarning "Unable to export the $DiagramTypeHash Diagram: $($_.Exception.Message)"
147113
}
114+
} catch {
115+
Write-PScriboMessage -IsWarning "Unable to export the $($DiagramTypeHash[$DiagramType]) Diagram: $($_.Exception.Message)"
148116
}
149117
} catch {
150-
Write-PScriboMessage -IsWarning "Unable to get the $DiagramTypeHash Diagram: $($_.Exception.Message)"
118+
Write-PScriboMessage -IsWarning "Unable to get the $($DiagramTypeHash[$DiagramType]) Diagram: $($_.Exception.Message)"
151119
}
152120
}
153121
end {}

Src/Public/Invoke-AsBuiltReport.Veeam.VBR.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Invoke-AsBuiltReport.Veeam.VBR {
55
.DESCRIPTION
66
Documents the configuration of Veeam VBR in Word/HTML/Text formats using PScribo.
77
.NOTES
8-
Version: 0.8.18
8+
Version: 0.8.19
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -105,9 +105,9 @@ function Invoke-AsBuiltReport.Veeam.VBR {
105105
Write-PScriboMessage -IsWarning "Backup Infrastructure Diagram: $($_.Exception.Message)"
106106
}
107107
if ($Graph) {
108-
If ((Get-DiaImagePercent -GraphObj $Graph).Width -gt 1500) { $ImagePrty = 10 } else { $ImagePrty = 30 }
108+
If ((Get-DiaImagePercent -GraphObj $Graph).Width -gt 800) { $ImagePrty = 9 } else { $ImagePrty = 20 }
109109
Section -Style Heading1 "Backup Infrastructure Diagram." -Orientation Landscape {
110-
Image -Base64 $Graph -Text "Backup Infrastructure Diagram" -Percent $ImagePrty -Align Center
110+
Image -Base64 $Graph -Text "Backup Infrastructure Diagram" -Align Center -Percent $ImagePrty
111111
Paragraph "Image preview: Opens the image in a new tab to view it at full resolution." -Tabs 2
112112
}
113113
BlankLine

0 commit comments

Comments
 (0)