AsBuiltReport / AsBuiltReport.Microsoft.Azure

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

Unexpected/unsupported object in document/section 'Microsoft Azure As Built Report'. #6

Closed rebelinux closed 1 year ago

rebelinux commented 1 year ago

Bug description

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

Command-line input

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

Steps to reproduce

  1. run report
  2. warning message displayed at end of run

Expected behaviour

No warning message displayed

Screenshots

No response

Operating System

Linux and Windows 10 x64

PowerShell Version

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> 

PowerShell Modules

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>

Additional Context

No response

Before submitting