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
817 stars 295 forks source link

Added missing module dependency #165

Closed AlexanderSehr closed 1 year ago

AlexanderSehr commented 1 year ago

Hey @JulianHayward, when I was following the instructions via the Console-Execution using a Tenant-User route I noticed that, upon execution, PowerShell will acutally complain about the missing PSGallery module AzAPICall. To this end, I'd suggest to add it as a dependency in the corresponding setup.md section.

The original execution log was:

PS C:\Output> C:\dev\ip\AzGovViz\pwsh\AzGovVizParallel.ps1 -ManagementGroupId '12345'
Start AzGovViz 22-Jan.-2023 20:29:39 (#v6_major_20230119_1)
Checking PowerShell edition and version
  PS check passed : (Major[7]; Minor[3] gt 0); (minimum supported version '7.0.3')
  PS Edition: Core; PS Version: 7.3.1
  PS Version check succeeded
Output/Files will be created in path 'C:\Output\.'
 Verify 'AzAPICall' (1.1.67)
Get-Package: No match was found for the specified search criteria and module names 'AzAPICall'.
  AzAPICall - Deviating module version
  'AzAPICall 1.1.67' not installed
  Do you want to install AzAPICall module (1.1.67) from the PowerShell Gallery? (y/n):
JulianHayward commented 1 year ago

thank you @AlexanderSehr