AsBuiltReport / AsBuiltReport.Microsoft.Azure

Repository for AsBuiltReport Microsoft Azure module
MIT License
11 stars 11 forks source link

Generation of an Azure report fails due to the installed Az module version not being version 9.4.0 or higher #10

Closed tpcarman closed 1 year ago

tpcarman commented 1 year ago

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

  1. Execute the above 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

image001 image003

Operating System

Windows 11

PowerShell Version

Name Value
PSVersion 5.1.22621.963
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.963
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

PowerShell Modules

Name Version
PScribo 0.10.0
AsBuiltReport.Core 1.3.0
AsBuiltReport.Microsoft.Azure 0.1.4

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