JulianHayward / Azure-MG-Sub-Governance-Reporting

Azure Governance Visualizer aka AzGovViz is a PowerShell script that captures Azure Governance related information such as Azure Policy, RBAC (a lot more) by polling Azure ARM, Storage and Microsoft Graph APIs.
MIT License
858 stars 308 forks source link

AzAPICall module install fails if DoAzureConsumption is set to false #195

Closed kouvo closed 1 year ago

kouvo commented 1 year ago

AzGovViz version 6.2.0

CodeRunPlatform Azure DevOps

Describe the bug

AzAPICall module install fails if DoAzureConsumption is set to false:

Verify 'AzAPICall' (false) 'AzAPICall false' not installed Installing AzAPICall module (false) Exception: /home/vsts/work/1/s/pwsh/AzGovVizParallel.ps1:29090 Line | 29090 | … throw " Installing '$($module.ModuleName)' module ($($mo … | ~~~~~~~~~~~~~ | Installing 'AzAPICall' module (false) failed

[error]PowerShell exited with code '1'.

JulianHayward commented 1 year ago

@kouvo are you using the latest AzGovViz.pipeline.yml?

kouvo commented 1 year ago

@JulianHayward apparently not - I had pipeline files in .gitignore. Thanks for quick reply 💯