asbuiltreport / asbuiltreport.microsoft.azure Goto Github PK
View Code? Open in Web Editor NEWRepository for AsBuiltReport Microsoft Azure module
License: MIT License
Repository for AsBuiltReport Microsoft Azure module
License: MIT License
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
command-line input from a Windows PowerShell 5.1 console.The Azure as-built report should be generated from the Windows PowerShell 5.1 console.
Windows 11
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 |
Name | Version |
---|---|
PScribo | 0.10.0 |
AsBuiltReport.Core | 1.3.0 |
AsBuiltReport.Microsoft.Azure | 0.1.4 |
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.
Hi, i run the new-asbuiltreport as shown in the screenshot attached and it does not error or provide any warnings / errors from the verbose. It creates the report but all i can see if the report is the Subscription ID. Also see attached.
New-AsBuiltReport -Report Microsoft.Azure -Target 'xxxxx' -MFA -Format HTML,Word -OutputFolderPath 'C:\users\xxxxx\desktop\reports' -Timestamp -EnableHealthCheck -Verbose
Unsure
I expected the report to show Virtual Machines and other information.
Windows 11
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
Name Version
AsBuiltReport.Core 1.3.0
AsBuiltReport.Microsoft.Azure 0.1.5
PScribo 0.10.0
AsBuiltReport.Microsoft.Azure 0.1.5
No response
The report does not work if run with a personal login account only Azure AD account works.
Invoke-AsBuiltReport.Microsoft.Azure : UsernamePasswordCredential authentication failed: ROPC does not support MSA accounts. See https://aka.ms/msal-net-ropc for details.
See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/usernamepasswordcredential/troubleshoot
At C:\Program Files\WindowsPowerShell\Modules\AsBuiltReport.Core\1.3.0\Src\Public\New-AsBuiltReport.ps1:390 char:21
+ ... & "Invoke-$($ReportModuleName)" -Target $Target -Credenti ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-AsBuiltReport.Microsoft.Azure
New-AsBuiltReport -Report Microsoft.Azure -OutputFolderPath C:\Users\jocolon\AsBuiltReport\ -AsBuiltConfigFilePath C:\Users\jocolon\AsBuiltReport\AsBuiltReport.json -EnableHealthCheck -Target xxxxx -Username [email protected] -Password xxxxx -Format HTML -ReportConfigFilePath C:\Users\jocolon\AsBuiltReport\AsBuiltReport.Microsoft.Azure.json
Report the limitation under known issues
No response
Windows 10 x64
PS C:\Users\jocolon> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.19041.2364
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.2364
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
PS C:\Users\jocolon>
PS C:\Users\jocolon> Get-Module -ListAvailable @("AsBuiltReport.Core";"AsBuiltReport.Microsoft.Azure";"Az";"PScribo") | Select Name, Version
Name Version
---- -------
AsBuiltReport.Core 1.3.0
AsBuiltReport.Microsoft.Azure 0.1.2
PScribo 0.10.0
PS C:\Users\jocolon>
No response
Running the install module command:
Install-Module AsBuiltReport.Microsoft.Azure
Produces this error:
PackageManagement\Install-Package : No match was found for the specified search criteria and module name
'AsBuiltReport.Microsoft.Azure'.
Can not find this module with with Find-Module either.
Manual download is also unavailable.
System - Windows 10 21H2 (completely updated as of this writing)
PowerShell version - 5.1
The README.md document does not provide examples of how to run the report. In addition it would be good to include what parameter is required in the -Target part (Example. tenantid)
No response
Currently getting the following error around line 38.
New-AsBuiltReport : Cannot convert 'System.Object[]' to the type
'Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer' required by parameter
'ProtectionContainer'. Specified method is not supported.
At line:1 char:1
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-AsBuiltReport
New-AsBuiltReport -Report Microsoft.Azure -Target 'TenantID' -MFA -Format Html,Word -OutputFolderPath $FolderPath -ReportConfigFilePath $AZConfigPath -EnableHealthCheck -Verbose
AsBuiltReport.Core v1.3.0
AsBuiltReport.Microsoft.Azure v1.6.0
Windows PowerShell v5.1.22621.2428
PS Core v7.3.9
Credentials are Azure GA.
I've ran the same command successfully in the past from the same machine.
No response
Windows 11 22H2
Name Value
PSVersion 7.3.9
PSEdition Core
GitCommitId 7.3.9
OS Microsoft Windows 10.0.22621
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Name Value
PSVersion 5.1.22621.2428
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.2428
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Name Version
AsBuiltReport.Core 1.3.0
AsBuiltReport.Microsoft.Azure 0.1.6
AsBuiltReport.Microsoft.Azure 0.1.5
PScribo 0.10.0
Name Version
AsBuiltReport.Core 1.3.0
AsBuiltReport.Microsoft.Azure 0.1.6
AsBuiltReport.Microsoft.Azure 0.1.5
Az 9.7.1
PScribo 0.10.0
AsBuiltReport.Core 1.3.0
AsBuiltReport.Microsoft.Azure 0.1.6
AsBuiltReport.Microsoft.Azure 0.1.5
Az 11.0.0
Az 10.4.1
PScribo 0.10.0
No response
Please wait while the Microsoft Azure As Built Report is being generated.
WARNING: [ 21:58:48:025 ] [ Document ] - Unexpected/unsupported object in document/section 'Microsoft Azure As Built Report'.
Microsoft Azure As Built Report 'Microsoft Azure As Built Report' has been saved to '/home/rebelinux/script/'.
Adding "Out-null" to line 94 seems to fix the situation:
Disconnect-AzAccount $AzAccount | Out-null
New-AsBuiltReport -Report Microsoft.Azure -OutputFolderPath /home/rebelinux/script/ -AsBuiltConfigFilePath /home/rebelinux/script/AsBuiltReport.json -EnableHealthCheck -Target xxx -Username xxxx -Password xxx -Format HTML -ReportConfigFilePath /home/rebelinux/script/AsBuiltReport.Microsoft.Azure.json
No warning message displayed
No response
Linux and Windows 10 x64
PS /home/rebelinux/Projects> $PSVersionTable
Name Value
---- -----
PSVersion 7.3.2
PSEdition Core
GitCommitId 7.3.2
OS Linux 6.1.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 14 Feb 2023 22:08:08 +0000
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
PS /home/rebelinux/Projects>
PS C:\Users\jocolon> Get-Module -ListAvailable @("AsBuiltReport.Core";"AsBuiltReport.Microsoft.Azure";"Az";"PScribo") | Select Name, Version
Name Version
---- -------
AsBuiltReport.Core 1.3.0
AsBuiltReport.Microsoft.Azure 0.1.2
PScribo 0.10.0
PS C:\Users\jocolon>
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.