Skip to content

Commit d2e651c

Browse files
authored
Merge pull request #52 from rebelinux/dev
v0.3.10
2 parents 695b31c + 178f0c2 commit d2e651c

File tree

4 files changed

+33
-30
lines changed

4 files changed

+33
-30
lines changed

AsBuiltReport.Veeam.VB365.psd1

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

1414
# Version number of this module.
15-
ModuleVersion = '0.3.9'
15+
ModuleVersion = '0.3.10'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
@@ -55,15 +55,15 @@
5555
RequiredModules = @(
5656
@{
5757
ModuleName = 'AsBuiltReport.Core';
58-
ModuleVersion = '1.4.2.1'
58+
ModuleVersion = '1.4.3'
5959
},
6060
@{
6161
ModuleName = 'PScriboCharts';
6262
ModuleVersion = '0.9.0'
6363
},
6464
@{
6565
ModuleName = 'Diagrammer.Core';
66-
ModuleVersion = '0.2.19'
66+
ModuleVersion = '0.2.22'
6767
}
6868
)
6969

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.3.10] - 2025-04-11
11+
12+
### Changed
13+
14+
- Bump module version to 0.3.10
15+
- Update dependencies in changelog
16+
- Improve diagram AdditionalInfo sorting
17+
- Refactor Infrastructure Diagram generation logic for clarity and efficiency
18+
1019
## [0.3.9] - 2025-03-04
1120

1221
### Added

Src/Private/Get-AbrVb365Diagram.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrVb365Diagram {
55
.DESCRIPTION
66
Diagram the configuration of Veeam Backup for Microsoft 365 infrastructure in PDF/SVG/DOT/PNG formats using PSGraph and Graphviz.
77
.NOTES
8-
Version: 0.3.9
8+
Version: 0.3.10
99
Author(s): Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -83,7 +83,7 @@ function Get-AbrVb365Diagram {
8383
$ProxiesInfo = @()
8484

8585
$Proxies | ForEach-Object {
86-
$inobj = @{
86+
$inobj = [PSCustomObject] [ordered] @{
8787
'Type' = $_.Type
8888
'Port' = "TCP/$($_.Port)"
8989
'OS' = $_.OperatingSystemKind
@@ -168,7 +168,7 @@ function Get-AbrVb365Diagram {
168168
} else {
169169
$ObjStorage = 'None'
170170
}
171-
$inobj = [ordered] @{
171+
$inobj = [PSCustomObject] [ordered] @{
172172
# 'Path' = $Repository.Path
173173
'Capacity' = ConvertTo-FileSizeString $Repository.Capacity
174174
'Free Space' = ConvertTo-FileSizeString $Repository.FreeSpace
@@ -194,13 +194,13 @@ function Get-AbrVb365Diagram {
194194
}
195195
}
196196
# Object Repositories Graphviz Cluster
197-
try {
197+
try {
198198

199199
$ObjectRepositoriesInfo = @()
200200
$ORIconType = @()
201201

202202
$ObjectRepositories | ForEach-Object {
203-
$inobj = @{
203+
$inobj = [PSCustomObject] [ordered] @{
204204
'Type' = $_.Type
205205
'Folder' = $_.Folder
206206
'Immutability' = $_.EnableImmutability
@@ -236,7 +236,7 @@ try {
236236
$OrganizationsInfo = @()
237237

238238
($Organizations | Where-Object { $_.Type -eq 'OnPremises' }) | ForEach-Object {
239-
$inobj = @{
239+
$inobj = [PSCustomObject] [ordered] @{
240240
'Users' = "Licensed: $($_.LicensingOptions.LicensedUsersCount) - Trial: $($_.LicensingOptions.TrialUsersCount)"
241241
'BackedUp' = ConvertTo-TextYN $_.IsBackedUp
242242
}
@@ -255,7 +255,7 @@ try {
255255
$OrganizationsInfo = @()
256256

257257
($Organizations | Where-Object { $_.Type -eq 'Office365' }) | ForEach-Object {
258-
$inobj = @{
258+
$inobj = [PSCustomObject] [ordered] @{
259259
'Users' = "Licensed: $($_.LicensingOptions.LicensedUsersCount) - Trial: $($_.LicensingOptions.TrialUsersCount)"
260260
'BackedUp' = ConvertTo-TextYN $_.IsBackedUp
261261
}

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

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ function Invoke-AsBuiltReport.Veeam.VB365 {
55
.DESCRIPTION
66
Documents the configuration of Veeam VB365 in Word/HTML/Text formats using PScribo.
77
.NOTES
8-
Version: 0.3.9
8+
Version: 0.3.10
99
Author: Jonathan Colon
10-
Twitter:
11-
Github:
10+
Twitter: @jcolonzenpr
11+
Github: @rebelinux
1212
Credits: Iain Brighton (@iainbrighton) - PScribo module
1313
1414
.LINK
@@ -43,7 +43,7 @@ function Invoke-AsBuiltReport.Veeam.VB365 {
4343
if ($InstalledVersion) {
4444
Write-PScriboMessage -Plugin "Module" -IsWarning "AsBuiltReport.Veeam.VB365 $($InstalledVersion.ToString()) is currently installed."
4545
$LatestVersion = Find-Module -Name AsBuiltReport.Veeam.VB365 -Repository PSGallery -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Version
46-
if ($LatestVersion -gt $InstalledVersion) {
46+
if ([version]$LatestVersion -gt [version]$InstalledVersion) {
4747
Write-PScriboMessage -Plugin "Module" -IsWarning "AsBuiltReport.Veeam.VB365 $($LatestVersion.ToString()) is available."
4848
Write-PScriboMessage -Plugin "Module" -IsWarning "Run 'Update-Module -Name AsBuiltReport.Veeam.VB365 -Force' to install the latest version."
4949
}
@@ -199,26 +199,20 @@ function Invoke-AsBuiltReport.Veeam.VB365 {
199199
}
200200
} else {
201201
try {
202-
try {
203-
$Graph = Get-AbrVb365Diagram
204-
$Diagram = New-Diagrammer @DiagramParams -InputObject $Graph
205-
} catch {
206-
Write-PScriboMessage -IsWarning "Unable to generate the Infrastructure Diagram: $($_.Exception.Message)"
207-
}
208-
209-
if ($Diagram) {
210-
If ((Get-DiaImagePercent -GraphObj $Diagram).Width -gt 1500) { $ImagePrty = 20 } else { $ImagePrty = 50 }
211-
Section -Style Heading2 "Infrastructure Diagram." {
212-
Image -Base64 $Diagram -Text "Veeam Backup for Microsoft 365 Diagram" -Percent $ImagePrty -Align Center
213-
Paragraph "Image preview: Opens the image in a new tab to view it at full resolution." -Tabs 2
214-
}
215-
BlankLine
216-
}
202+
$Graph = Get-AbrVb365Diagram
203+
$script:Diagram = New-Diagrammer @DiagramParams -InputObject $Graph
217204
} catch {
218-
Write-PScriboMessage -IsWarning "Infrastructure Diagram: $($_.Exception.Message)"
205+
Write-PScriboMessage -IsWarning "Unable to generate the Infrastructure Diagram: $($_.Exception.Message)"
219206
}
220207
}
221208
}
222209
}
210+
if ($Diagram) {
211+
If ((Get-DiaImagePercent -GraphObj $Diagram).Width -gt 1500) { $ImagePrty = 20 } else { $ImagePrty = 50 }
212+
Section -Style Heading2 "Infrastructure Diagram." -Orientation Landscape {
213+
Image -Base64 $Diagram -Text "Veeam Backup for Microsoft 365 Diagram" -Percent $ImagePrty -Align Center
214+
Paragraph "Image preview: Opens the image in a new tab to view it at full resolution." -Tabs 2
215+
}
216+
}
223217
} #endregion foreach loop
224218
}

0 commit comments

Comments
 (0)