Skip to content

Commit b68e128

Browse files
committed
v1.3.4-RC1 release
### Changed - Updated VMware PowerCLI requirements to version 13.2 - Improved bug and feature request templates - Improved TOC structure - Updated VMware style script for improved TOC structure ### Fixed - Updated VMHost PCI Devices reporting to fix issues with ESXi 8.x hosts ([Fix #111](#111)) - Added Try/Catch stated PCI Drivers and Firmware section to provide a workaround for ESXi 8.x hosts ([Fix #116](#116))
1 parent 002b25c commit b68e128

File tree

4 files changed

+35
-27
lines changed

4 files changed

+35
-27
lines changed

AsBuiltReport.VMware.vSphere.Style.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ Style -Name 'Heading 1' -Size 16 -Color '00364D'
1111
Style -Name 'Heading 2' -Size 14 -Color '004B6B'
1212
Style -Name 'Heading 3' -Size 12 -Color '00567A'
1313
Style -Name 'Heading 4' -Size 11 -Color '00648F'
14+
Style -Name 'NO TOC Heading 4' -Size 11 -Color '00648F'
1415
Style -Name 'Heading 5' -Size 10 -Color '0072A3'
16+
Style -Name 'NO TOC Heading 5' -Size 10 -Color '0072A3'
1517
Style -Name 'Normal' -Size 10 -Color '565656' -Default
1618
Style -Name 'Caption' -Size 10 -Color '565656' -Italic -Align Center
1719
Style -Name 'Header' -Size 10 -Color '565656' -Align Center
1820
Style -Name 'Footer' -Size 10 -Color '565656' -Align Center
1921
Style -Name 'TOC' -Size 16 -Color '00364D'
20-
#Style -Name 'TableDefaultHeading' -Size 10 -Color '565656' -BackgroundColor 'FAFAFA' # Light Theme
21-
Style -Name 'TableDefaultHeading' -Size 10 -Color 'FAFAFA' -BackgroundColor '00364D' # Dark Theme
22+
Style -Name 'TableDefaultHeading' -Size 10 -Color 'FAFAFA' -BackgroundColor '00364D'
2223
Style -Name 'TableDefaultRow' -Size 10 -Color '565656'
2324
Style -Name 'Critical' -Size 10 -Color '565656' -BackgroundColor 'FEDDD7'
2425
Style -Name 'Warning' -Size 10 -Color '565656' -BackgroundColor 'FFF4C7'
@@ -30,8 +31,7 @@ $TableDefaultProperties = @{
3031
Id = 'TableDefault'
3132
HeaderStyle = 'TableDefaultHeading'
3233
RowStyle = 'TableDefaultRow'
33-
#BorderColor = 'A6A6A6' # Light Theme
34-
BorderColor = '00364D' # Dark Theme
34+
BorderColor = '00364D'
3535
Align = 'Left'
3636
CaptionStyle = 'Caption'
3737
CaptionLocation = 'Below'

AsBuiltReport.VMware.vSphere.psd1

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

1414
# Version number of this module.
15-
ModuleVersion = '1.3.3.1'
15+
ModuleVersion = '1.3.4'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = 'Desktop'
@@ -111,7 +111,7 @@
111111
ReleaseNotes = 'https://raw.githubusercontent.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/master/CHANGELOG.md'
112112

113113
# Prerelease string of this module
114-
# Prerelease = ''
114+
Prerelease = 'rc1'
115115

116116
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
117117
# RequireLicenseAcceptance = $false

CHANGELOG.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
# :arrows_clockwise: VMware vSphere As Built Report Changelog
22

3-
## [[1.3.4](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/releases/tag/v1.3.4)] - 2023-11-12
3+
## [1.3.4-RC1](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/releases/tag/v1.3.4-RC1)] - 2023-11-30
44

55
### Changed
6-
- Improved bug and feature request templates.
6+
- Updated VMware PowerCLI requirements to version 13.2
7+
- Improved bug and feature request templates
8+
- Improved TOC structure
9+
- Updated VMware style script for improved TOC structure
10+
11+
### Fixed
12+
- Updated VMHost PCI Devices reporting to fix issues with ESXi 8.x hosts ([Fix #111](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/111))
13+
- Added Try/Catch stated PCI Drivers and Firmware section to provide a workaround for ESXi 8.x hosts ([Fix #116](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/116))
14+
15+
### Removed
16+
- Removed reporting of vCenter Server OS type
717

818
## [[1.3.3.1](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/releases/tag/v1.3.3.1)] - 2022-04-21
919

Src/Public/Invoke-AsBuiltReport.VMware.vSphere.ps1

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function Invoke-AsBuiltReport.VMware.vSphere {
2020
)
2121

2222
# Check if the required version of VMware PowerCLI is installed
23-
Get-RequiredModule -Name 'VMware.PowerCLI' -Version '13.1'
23+
Get-RequiredModule -Name 'VMware.PowerCLI' -Version '13.2'
2424

2525
# Import Report Configuration
2626
$Report = $ReportConfig.Report
@@ -168,13 +168,12 @@ function Invoke-AsBuiltReport.VMware.vSphere {
168168
'IP Address' = ($vCenterAdvSettings | Where-Object { $_.name -like 'VirtualCenter.AutoManagedIPV4' }).Value
169169
'Version' = $vCenter.Version
170170
'Build' = $vCenter.Build
171-
#'OS Type' = $vCenter.ExtensionData.Content.About.OsType
172171
}
173172
#region vCenter Server Summary & Advanced Summary
174173
if ($InfoLevel.vCenter -le 2) {
175174
$TableParams = @{
176175
Name = "vCenter Server Summary - $vCenterServerName"
177-
ColumnWidths = 20, 20, 20, 20, 20
176+
ColumnWidths = 25, 25, 25, 25
178177
}
179178
if ($Report.ShowTableCaptions) {
180179
$TableParams['Caption'] = "- $($TableParams.Name)"
@@ -1928,13 +1927,13 @@ function Invoke-AsBuiltReport.VMware.vSphere {
19281927
#endregion ESXi Host Boot Devices
19291928

19301929
#region ESXi Host PCI Devices
1931-
Section -Style Heading5 'PCI Devices' {
1930+
Section -Style NOTOCHeading5 -ExcludeFromTOC 'PCI Devices' {
19321931
<# Move away from esxcli.v2 implementation to be compatible with 8.x branch.
19331932
'Slot Description' information does not seem to be available through the API
1934-
Create an array with PCI Address and VMware Devices (vmnic,vmhba,?vmgfx?)
1933+
Create an array with PCI Address and VMware Devices (vmnic,vmhba,?vmgfx?)
19351934
#>
19361935
$PciToDeviceMapping = @{}
1937-
$NetworkAdapters = Get-VMHostNetworkAdapter -VMHost $VMHost -Physical
1936+
$NetworkAdapters = Get-VMHostNetworkAdapter -VMHost $VMHost -Physical
19381937
foreach ($adapter in $NetworkAdapters) {
19391938
$PciToDeviceMapping[$adapter.PciId] = $adapter.DeviceName
19401939
}
@@ -1950,39 +1949,38 @@ function Invoke-AsBuiltReport.VMware.vSphere {
19501949
foreach ($adapter in $GpuAdapters) {
19511950
$PciToDeviceMapping[$adapter.pciId] = $adapter.deviceName
19521951
}
1953-
1952+
19541953
$VMHostPciDevice = @{
1955-
VMHost = $VMHost
1954+
VMHost = $VMHost
19561955
DeviceClass = @('MassStorageController', 'NetworkController', 'DisplayController', 'SerialBusController')
19571956
}
19581957
$PciDevices = Get-VMHostPciDevice @VMHostPciDevice
1959-
1958+
19601959
# Combine PciDevices and PciToDeviceMapping
1961-
1960+
19621961
$VMHostPciDevices = $PciDevices | ForEach-Object {
19631962
$PciDevice = $_
19641963
$device = $PCIToDeviceMapping[$pciDevice.Id]
1965-
1964+
19661965
if ($device) {
19671966
[PSCustomObject]@{
1968-
'Device' = $device
1969-
'PCI Address' = $PciDevice.Id
1970-
'Device Class' = $PciDevice.DeviceClass -replace ('Controller',"")
1971-
'Device Name' = $PciDevice.DeviceName
1972-
'Vendor Name' = $PciDevice.VendorName
1967+
'Device' = $device
1968+
'PCI Address' = $PciDevice.Id
1969+
'Device Class' = $PciDevice.DeviceClass -replace ('Controller', "")
1970+
'Device Name' = $PciDevice.DeviceName
1971+
'Vendor Name' = $PciDevice.VendorName
19731972
}
19741973
}
1975-
} Catch {
1976-
Write-PScriboMessage -IsWarning "Unable to collect PCI Devices configuration from $VMhost."
19771974
}
1975+
19781976
$TableParams = @{
19791977
Name = "PCI Devices - $VMHost"
19801978
ColumnWidths = 17, 18, 15, 30, 20
19811979
}
19821980
if ($Report.ShowTableCaptions) {
19831981
$TableParams['Caption'] = "- $($TableParams.Name)"
19841982
}
1985-
$VMHostPciDevices | Table @TableParams
1983+
$VMHostPciDevices | Sort-Object 'Device' | Table @TableParams
19861984
}
19871985
#endregion ESXi Host PCI Devices
19881986

0 commit comments

Comments
 (0)