Closed tpcarman closed 1 year ago
Generation of an Azure as-built report fails with the following error when executed from a Windows PowerShell 5.1 console.
Microsoft Azure PowerShell 9.4.0 or higher is required to run the Microsoft Azure As Built Report.
Microsoft Az PowerShell modules greater than version 9.4.0 are installed.
New-AsBuiltReport -Report Microsoft.Azure -MFA -Target 'xxxxxx' -Format HTML -OutputFolderPath .\Documents\ -EnableHealthCheck -Verbose
new-asbuiltreport
The Azure as-built report should be generated from the Windows PowerShell 5.1 console.
Windows 11
This issue relates to the PowerShell Az module manifest and Windows PowerShell 5.1. The issue is reported here.
As a workaround, please use PowerShell 7 to generate a report.
Bug description
Generation of an Azure as-built report fails with the following error when executed from a Windows PowerShell 5.1 console.
Microsoft Azure PowerShell 9.4.0 or higher is required to run the Microsoft Azure As Built Report.
Microsoft Az PowerShell modules greater than version 9.4.0 are installed.
Command-line input
New-AsBuiltReport -Report Microsoft.Azure -MFA -Target 'xxxxxx' -Format HTML -OutputFolderPath .\Documents\ -EnableHealthCheck -Verbose
Steps to reproduce
new-asbuiltreport
command-line input from a Windows PowerShell 5.1 console.Expected behaviour
The Azure as-built report should be generated from the Windows PowerShell 5.1 console.
Screenshots
Operating System
Windows 11
PowerShell Version
PowerShell Modules
Additional Context
This issue relates to the PowerShell Az module manifest and Windows PowerShell 5.1. The issue is reported here.
As a workaround, please use PowerShell 7 to generate a report.
Before submitting