AsBuiltReport / AsBuiltReport.Microsoft.Azure

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

Error from Get-AbrAsrProtectedItems.ps1 #15

Open deanoporter opened 9 months ago

deanoporter commented 9 months ago

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

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