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
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/
Command-line input
New-AsBuiltReport -Report Microsoft.Azure -OutputFolderPath C:\Users\jocolon\AsBuiltReport\ -AsBuiltConfigFilePath C:\Users\jocolon\AsBuiltReport\AsBuiltReport.json -EnableHealthCheck -Target xxxxx -Username xxxxx@gmail.com -Password xxxxx -Format HTML -ReportConfigFilePath C:\Users\jocolon\AsBuiltReport\AsBuiltReport.Microsoft.Azure.json
Steps to reproduce
Expected behaviour
Report the limitation under known issues
Screenshots
No response
Operating System
Windows 10 x64
PowerShell Version
PowerShell Modules
Additional Context
No response
Before submitting