Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error from Get-AbrAsrProtectedItems.ps1 #15

Open
3 tasks done
deanoporter opened this issue Nov 22, 2023 · 0 comments
Open
3 tasks done

Error from Get-AbrAsrProtectedItems.ps1 #15

deanoporter opened this issue Nov 22, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@deanoporter
Copy link

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

@deanoporter deanoporter added the bug Something isn't working label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants