Skip to content

-Token and -UseInteractiveAuth not working #24

@erickvtorres

Description

@erickvtorres

Bug description

Cannot bind argument to parameter 'Credential' because it is null.

Command-line input

New-AsBuiltReport -Report Microsoft.Azure -Format HTML -OutputFolderPath C:\Reports\ -Target 'xxxx' -Token $Token -EnableHealthCheck

Steps to reproduce

  1. Installed Modules
  2. Configs
  3. New-AzBuiltReport

Expected behaviour

Report?

Screenshots

Image

Operating System

Windows 11

PowerShell Version

Name Value
PSVersion 7.5.4
PSEdition Core
GitCommitId 7.5.4
OS Microsoft Windows 10.0.26200
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

PowerShell Modules

Name Version
AsBuiltReport.Core 1.5.1
AsBuiltReport.Microsoft.Azure 0.1.8.2
Az 15.1.0
PScribo 0.11.1

Additional Context

No response

Before submitting

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions