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
814 stars 293 forks source link

Issue collecting 'Avilable Private Endpoint Types #219

Closed MarcelHeek closed 7 months ago

MarcelHeek commented 7 months ago

AzGovViz version v6.3.4

CodeRunPlatform GitHub Actions

Describe the bug Script throws an error of a specific subscription where it failes to collect the available Private Endpoint Types.

Screenshots image

Returned 0 'Available Private Endpoint Types' for location australiacentral Returned 0 'Available Private Endpoint Types' for location australiasoutheast Returned 0 'Available Private Endpoint Types' for location koreasouth Returned 0 'Available Private Endpoint Types' for location japanwest 0 'Available Private Endpoint Types' - Please use another Subscription for the AzContext (current subscriptionId: '9783e0a3-5495-xxxx-xxxx-xxxxxxxxxxxx') -> use parameter: -SubscriptionId4AzContext '' Exception: /home/runner294/actions-runner/_work/azure-governance-visualizer/azure-governance-visualizer/tools/pwsh/AzGovVizParallel.ps1:34240 Line | 34240 | Throw $throwmsg | ~~~ | 0 'Available Private Endpoint Types' - Please use another Subscription | for the AzContext (current subscriptionId: | '9783e0a3-5495-49ae-84f2-491e9eaa9e6b') -> use parameter: | -SubscriptionId4AzContext '' Error: Error: The process '/usr/bin/pwsh' failed with exit code 1

Additional context Add any other context about the problem here.

JulianHayward commented 7 months ago

@MarcelHeek please do as it asks you to :)

image
MarcelHeek commented 7 months ago

@JulianHayward I added the argument as you suggested. But now the execution throws the error as described in #218

So I will close this one 😜