Skip to content

Commit

Permalink
Merge pull request #120 from AsBuiltReport/dev
Browse files Browse the repository at this point in the history
v.1.3.4 release
  • Loading branch information
tpcarman authored Feb 27, 2024
2 parents 5682b93 + b884a71 commit e8e3651
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have read the [**CONTRIBUTING**](/CONTRIBUTING.md) document.
- [ ] I have read the [**CONTRIBUTING**](https://www.asbuiltreport.com/about/contributing/) document.
2 changes: 1 addition & 1 deletion .github/workflows/PSScriptAnalyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
name: Run PSScriptAnalyzer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: lint
uses: devblackops/github-action-psscriptanalyzer@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
publish-to-gallery:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set PSRepository to Trusted for PowerShell Gallery
shell: pwsh
run: |
Expand Down
6 changes: 3 additions & 3 deletions AsBuiltReport.VMware.vSphere.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# CompanyName = ''

# Copyright statement for this module
Copyright = '(c) 2018 Tim Carman. All rights reserved.'
Copyright = '(c) 2024 Tim Carman. All rights reserved.'

# Description of the functionality provided by this module
Description = 'A PowerShell module to generate an as built report on the configuration of VMware vSphere.'
Expand All @@ -51,7 +51,7 @@
RequiredModules = @(
@{
ModuleName = 'AsBuiltReport.Core';
ModuleVersion = '1.2.0'
ModuleVersion = '1.3.0'
}
)

Expand Down Expand Up @@ -111,7 +111,7 @@
ReleaseNotes = 'https://raw.githubusercontent.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/master/CHANGELOG.md'

# Prerelease string of this module
Prerelease = 'rc1'
# Prerelease = ''

# Flag to indicate whether the module requires explicit user acceptance for install/update/save
# RequireLicenseAcceptance = $false
Expand Down
26 changes: 17 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
# :arrows_clockwise: VMware vSphere As Built Report Changelog

## [[1.3.4-RC1](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/releases/tag/v1.3.4-RC1)] - 2023-12-01
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [[1.3.4](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/releases/tag/v1.3.4)] - 2024-02-28

### Changed
- Updated VMware PowerCLI requirements to version 13.2 ([Fix #107](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/107))
- Improved bug and feature request templates (@rebelinux)
- Improved TOC structure
- Updated VMware style script for improved TOC structure
- Update VMware PowerCLI requirements to version 13.2 ([Fix #107](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/107))
- Improve bug and feature request templates (@rebelinux)
- Improve TOC structure
- Update VMware style script for improved TOC structure
- Update GitHub action workflows

### Fixed
- 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))
- 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))
- Updated vCenter Server alarms reporting ([Fix #106](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/106))
- Fixed issue with Platform Services Controller reporting ([Fix #103](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/103))
- 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))
- 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))
- Update vCenter Server alarms reporting ([Fix #106](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/106))
- Fix issue with Platform Services Controller reporting ([Fix #103](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/103))
- Fix NSX-T virtual switch network labels ([Fix #118](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/118))
- Fix [#103](https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues/103)

### Removed
- Removed reporting of vCenter Server OS type
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ Below are the instructions on how to install, configure and generate a VMware vS

### VMware vSphere
The VMware vSphere As Built Report supports the following vSphere versions;
- vSphere 6.5
- vSphere 6.7
- vSphere 7.0
- vSphere 8.0

#### End of Support
The following VMware vSphere versions are no longer being tested and/or supported;
- vSphere 5.5
- vSphere 6.0
- vSphere 6.5
- vSphere 6.7

### PowerShell
This report is compatible with the following PowerShell versions;
Expand Down
37 changes: 31 additions & 6 deletions Src/Public/Invoke-AsBuiltReport.VMware.vSphere.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Invoke-AsBuiltReport.VMware.vSphere {
.DESCRIPTION
Documents the configuration of VMware vSphere infrastucture in Word/HTML/Text formats using PScribo.
.NOTES
Version: 1.3.4-RC1
Version: 1.3.4-RC2
Author: Tim Carman
Twitter: @tpcarman
Github: tpcarman
Expand All @@ -19,6 +19,26 @@ function Invoke-AsBuiltReport.VMware.vSphere {
[PSCredential] $Credential
)

Write-PScriboMessage -Plugin "Module" -IsWarning "Please refer to www.asbuiltreport.com for more detailed information about this project."
Write-PScriboMessage -Plugin "Module" -IsWarning "Do not forget to update your report configuration file after each new version release."
Write-PScriboMessage -Plugin "Module" -IsWarning "Documentation: https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere"
Write-PScriboMessage -Plugin "Module" -IsWarning "Issues or bug reporting: https://github.com/AsBuiltReport/AsBuiltReport.VMware.vSphere/issues"

# Check the current AsBuiltReport.VMware.vSphere module
Try {
$InstalledVersion = Get-Module -ListAvailable -Name AsBuiltReport.VMware.vSphere -ErrorAction SilentlyContinue | Sort-Object -Property Version -Descending | Select-Object -First 1 -ExpandProperty Version

if ($InstalledVersion) {
Write-PScriboMessage -Plugin "Module" -IsWarning "AsBuiltReport.VMware.vSphere $($InstalledVersion.ToString()) is currently installed."
$LatestVersion = Find-Module -Name AsBuiltReport.VMware.vSphere -Repository PSGallery -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Version
if ($LatestVersion -gt $InstalledVersion) {
Write-PScriboMessage -Plugin "Module" -IsWarning "AsBuiltReport.VMware.vSphere $($LatestVersion.ToString()) is available."
Write-PScriboMessage -Plugin "Module" -IsWarning "Run 'Update-Module -Name AsBuiltReport.VMware.vSphere -Force' to install the latest version."
}
}
} Catch {
Write-PscriboMessage -Plugin "Module" -IsWarning $_.Exception.Message
}
# Check if the required version of VMware PowerCLI is installed
Get-RequiredModule -Name 'VMware.PowerCLI' -Version '13.2'

Expand Down Expand Up @@ -2595,7 +2615,7 @@ function Invoke-AsBuiltReport.VMware.vSphere {
Section -Style NOTOCHeading5 -ExcludeFromTOC 'VMkernel Adapters' {
Paragraph "The following section details the VMkernel adapter configuration for $VMHost"
$VMkernelAdapters = $VMHost | Get-View | ForEach-Object -Process {
$esx = $_
#$esx = $_
$netSys = Get-View -Id $_.ConfigManager.NetworkSystem
$vnicMgr = Get-View -Id $_.ConfigManager.VirtualNicManager
$netSys.NetworkInfo.Vnic |
Expand All @@ -2606,17 +2626,22 @@ function Invoke-AsBuiltReport.VMware.vSphere {
'Network Label' = & {
if ($_.Spec.Portgroup) {
$script:pg = $_.Spec.Portgroup
$script:pg
} elseif ($_.Spec.DistributedVirtualPort.Portgroupkey) {
$script:pg = Get-View -ViewType DistributedVirtualPortgroup -Property Name, Key -Filter @{'Key' = "$($_.Spec.DistributedVirtualPort.PortgroupKey)" } | Select-Object -ExpandProperty Name
$script:pg
} else {
$script:pg = Get-View -ViewType DistributedVirtualPortgroup -Property Name, Key -Filter @{'Key' = "$($_.Spec.DistributedVirtualPort.PortgroupKey)" } |
Select-Object -ExpandProperty Name
'--'
}
$script:pg
}
'Virtual Switch' = & {
if ($_.Spec.Portgroup) {
(Get-VirtualPortGroup -Standard -Name $script:pg -VMHost $VMHost).VirtualSwitchName
} else {
} elseif ($_.Spec.DistributedVirtualPort.Portgroupkey) {
(Get-VDPortgroup -Name $script:pg).VDSwitch.Name | Select-Object -Unique
} else {
# Haven't figured out how to gather this yet!
'--'
}
}
'TCP/IP Stack' = Switch ($_.Spec.NetstackInstanceKey) {
Expand Down

0 comments on commit e8e3651

Please sign in to comment.