Git Product home page Git Product logo

asbuiltreport.microsoft.azure's People

Contributors

howardhaooooo avatar rebelinux avatar tpcarman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

asbuiltreport.microsoft.azure's Issues

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

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

No information in Report

Bug description

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.

Command-line input

New-AsBuiltReport -Report Microsoft.Azure -Target 'xxxxx' -MFA -Format HTML,Word -OutputFolderPath 'C:\users\xxxxx\desktop\reports' -Timestamp -EnableHealthCheck -Verbose

Steps to reproduce

Unsure

Expected behaviour

I expected the report to show Virtual Machines and other information.

Screenshots

image
image

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


AsBuiltReport.Core 1.3.0
AsBuiltReport.Microsoft.Azure 0.1.5
PScribo 0.10.0
AsBuiltReport.Microsoft.Azure 0.1.5

Additional Context

No response

Before submitting

UsernamePasswordCredential authentication failed: ROPC does not support MSA accounts

Bug description

The report does not work if run with a personal login account only Azure AD account works.

https://themicrosoftcloudblog.com/2021/08/03/error-connecting-to-azure-via-powershell-azure-cli-using-a-personal-account/

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

Command-line input

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

Steps to reproduce

  1. Run the report with an personal account type
  2. Apocalipsis

Expected behaviour

Report the limitation under known issues

Screenshots

No response

Operating System

Windows 10 x64

PowerShell Version

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>

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

Associated AsBuilt module unavailable

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

README.md has no Example section

Description

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)

Additional Context

No response

Before submitting

  • I have read the documentation, and referred to the known issues before submitting this feature request.
  • I have checked for previously opened & closed issues before submitting this feature request.

Error from Get-AbrAsrProtectedItems.ps1

Bug description

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

  • New-AsBuiltReport -Report Microsoft.Azure -Target 'xxxxxxxx-xxxx-xxxx ...
  •   + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-AsBuiltReport
    
    
    

Command-line input

New-AsBuiltReport -Report Microsoft.Azure -Target 'TenantID' -MFA -Format Html,Word -OutputFolderPath $FolderPath -ReportConfigFilePath $AZConfigPath -EnableHealthCheck -Verbose

Steps to reproduce

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.

Expected behaviour

I've ran the same command successfully in the past from the same machine.

Screenshots

No response

Operating System

Windows 11 22H2

PowerShell Version

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

PowerShell Modules

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

Additional Context

No response

Before submitting

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.