Skip to content

Commit e8e3651

Browse files
authored
Merge pull request #120 from AsBuiltReport/dev
v.1.3.4 release
2 parents 5682b93 + b884a71 commit e8e3651

File tree

7 files changed

+57
-23
lines changed

7 files changed

+57
-23
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
- [ ] My code follows the code style of this project.
3232
- [ ] My change requires a change to the documentation.
3333
- [ ] I have updated the documentation accordingly.
34-
- [ ] I have read the [**CONTRIBUTING**](/CONTRIBUTING.md) document.
34+
- [ ] I have read the [**CONTRIBUTING**](https://www.asbuiltreport.com/about/contributing/) document.

.github/workflows/PSScriptAnalyzer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
name: Run PSScriptAnalyzer
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
8+
- uses: actions/checkout@v4
99
- name: lint
1010
uses: devblackops/github-action-psscriptanalyzer@master
1111
with:

.github/workflows/Release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
publish-to-gallery:
99
runs-on: windows-2019
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
- name: Set PSRepository to Trusted for PowerShell Gallery
1313
shell: pwsh
1414
run: |

AsBuiltReport.VMware.vSphere.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# CompanyName = ''
2828

2929
# Copyright statement for this module
30-
Copyright = '(c) 2018 Tim Carman. All rights reserved.'
30+
Copyright = '(c) 2024 Tim Carman. All rights reserved.'
3131

3232
# Description of the functionality provided by this module
3333
Description = 'A PowerShell module to generate an as built report on the configuration of VMware vSphere.'
@@ -51,7 +51,7 @@
5151
RequiredModules = @(
5252
@{
5353
ModuleName = 'AsBuiltReport.Core';
54-
ModuleVersion = '1.2.0'
54+
ModuleVersion = '1.3.0'
5555
}
5656
)
5757

@@ -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 = 'rc1'
114+
# Prerelease = ''
115115

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

CHANGELOG.md

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

3-
## [[1.3.4-RC1](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/releases/tag/v1.3.4-RC1)] - 2023-12-01
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [[1.3.4](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/releases/tag/v1.3.4)] - 2024-02-28
49

510
### Changed
6-
- Updated VMware PowerCLI requirements to version 13.2 ([Fix #107](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/107))
7-
- Improved bug and feature request templates (@rebelinux)
8-
- Improved TOC structure
9-
- Updated VMware style script for improved TOC structure
11+
- Update VMware PowerCLI requirements to version 13.2 ([Fix #107](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/107))
12+
- Improve bug and feature request templates (@rebelinux)
13+
- Improve TOC structure
14+
- Update VMware style script for improved TOC structure
15+
- Update GitHub action workflows
1016

1117
### Fixed
12-
- Updated VMHost PCI Devices reporting to fix issues with ESXi 8.x hosts (@orb71) ([Fix #105](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/105)) & ([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-
- Updated vCenter Server alarms reporting ([Fix #106](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/106))
15-
- Fixed issue with Platform Services Controller reporting ([Fix #103](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/103))
18+
- Update VMHost PCI Devices reporting to fix issues with ESXi 8.x hosts (@orb71) ([Fix #105](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/105)) & ([Fix #111](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/111))
19+
- Add 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))
20+
- Update vCenter Server alarms reporting ([Fix #106](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/106))
21+
- Fix issue with Platform Services Controller reporting ([Fix #103](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/103))
22+
- Fix NSX-T virtual switch network labels ([Fix #118](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/118))
23+
- Fix [#103](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/103)
1624

1725
### Removed
1826
- Removed reporting of vCenter Server OS type

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,15 @@ Below are the instructions on how to install, configure and generate a VMware vS
5757

5858
### VMware vSphere
5959
The VMware vSphere As Built Report supports the following vSphere versions;
60-
- vSphere 6.5
61-
- vSphere 6.7
6260
- vSphere 7.0
61+
- vSphere 8.0
6362

6463
#### End of Support
6564
The following VMware vSphere versions are no longer being tested and/or supported;
6665
- vSphere 5.5
6766
- vSphere 6.0
67+
- vSphere 6.5
68+
- vSphere 6.7
6869

6970
### PowerShell
7071
This report is compatible with the following PowerShell versions;

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

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Invoke-AsBuiltReport.VMware.vSphere {
55
.DESCRIPTION
66
Documents the configuration of VMware vSphere infrastucture in Word/HTML/Text formats using PScribo.
77
.NOTES
8-
Version: 1.3.4-RC1
8+
Version: 1.3.4-RC2
99
Author: Tim Carman
1010
Twitter: @tpcarman
1111
Github: tpcarman
@@ -19,6 +19,26 @@ function Invoke-AsBuiltReport.VMware.vSphere {
1919
[PSCredential] $Credential
2020
)
2121

22+
Write-PScriboMessage -Plugin "Module" -IsWarning "Please refer to www.asbuiltreport.com for more detailed information about this project."
23+
Write-PScriboMessage -Plugin "Module" -IsWarning "Do not forget to update your report configuration file after each new version release."
24+
Write-PScriboMessage -Plugin "Module" -IsWarning "Documentation: https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere"
25+
Write-PScriboMessage -Plugin "Module" -IsWarning "Issues or bug reporting: https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues"
26+
27+
# Check the current AsBuiltReport.VMware.vSphere module
28+
Try {
29+
$InstalledVersion = Get-Module -ListAvailable -Name AsBuiltReport.VMware.vSphere -ErrorAction SilentlyContinue | Sort-Object -Property Version -Descending | Select-Object -First 1 -ExpandProperty Version
30+
31+
if ($InstalledVersion) {
32+
Write-PScriboMessage -Plugin "Module" -IsWarning "AsBuiltReport.VMware.vSphere $($InstalledVersion.ToString()) is currently installed."
33+
$LatestVersion = Find-Module -Name AsBuiltReport.VMware.vSphere -Repository PSGallery -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Version
34+
if ($LatestVersion -gt $InstalledVersion) {
35+
Write-PScriboMessage -Plugin "Module" -IsWarning "AsBuiltReport.VMware.vSphere $($LatestVersion.ToString()) is available."
36+
Write-PScriboMessage -Plugin "Module" -IsWarning "Run 'Update-Module -Name AsBuiltReport.VMware.vSphere -Force' to install the latest version."
37+
}
38+
}
39+
} Catch {
40+
Write-PscriboMessage -Plugin "Module" -IsWarning $_.Exception.Message
41+
}
2242
# Check if the required version of VMware PowerCLI is installed
2343
Get-RequiredModule -Name 'VMware.PowerCLI' -Version '13.2'
2444

@@ -2595,7 +2615,7 @@ function Invoke-AsBuiltReport.VMware.vSphere {
25952615
Section -Style NOTOCHeading5 -ExcludeFromTOC 'VMkernel Adapters' {
25962616
Paragraph "The following section details the VMkernel adapter configuration for $VMHost"
25972617
$VMkernelAdapters = $VMHost | Get-View | ForEach-Object -Process {
2598-
$esx = $_
2618+
#$esx = $_
25992619
$netSys = Get-View -Id $_.ConfigManager.NetworkSystem
26002620
$vnicMgr = Get-View -Id $_.ConfigManager.VirtualNicManager
26012621
$netSys.NetworkInfo.Vnic |
@@ -2606,17 +2626,22 @@ function Invoke-AsBuiltReport.VMware.vSphere {
26062626
'Network Label' = & {
26072627
if ($_.Spec.Portgroup) {
26082628
$script:pg = $_.Spec.Portgroup
2629+
$script:pg
2630+
} elseif ($_.Spec.DistributedVirtualPort.Portgroupkey) {
2631+
$script:pg = Get-View -ViewType DistributedVirtualPortgroup -Property Name, Key -Filter @{'Key' = "$($_.Spec.DistributedVirtualPort.PortgroupKey)" } | Select-Object -ExpandProperty Name
2632+
$script:pg
26092633
} else {
2610-
$script:pg = Get-View -ViewType DistributedVirtualPortgroup -Property Name, Key -Filter @{'Key' = "$($_.Spec.DistributedVirtualPort.PortgroupKey)" } |
2611-
Select-Object -ExpandProperty Name
2634+
'--'
26122635
}
2613-
$script:pg
26142636
}
26152637
'Virtual Switch' = & {
26162638
if ($_.Spec.Portgroup) {
26172639
(Get-VirtualPortGroup -Standard -Name $script:pg -VMHost $VMHost).VirtualSwitchName
2618-
} else {
2640+
} elseif ($_.Spec.DistributedVirtualPort.Portgroupkey) {
26192641
(Get-VDPortgroup -Name $script:pg).VDSwitch.Name | Select-Object -Unique
2642+
} else {
2643+
# Haven't figured out how to gather this yet!
2644+
'--'
26202645
}
26212646
}
26222647
'TCP/IP Stack' = Switch ($_.Spec.NetstackInstanceKey) {

0 commit comments

Comments
 (0)