Azure / Azure-Governance-Visualizer

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
92 stars 24 forks source link

critical error in script #27

Closed ksagala closed 8 months ago

ksagala commented 9 months ago

AzGovViz version atest version of AzGovViz 6.3.7

CodeRunPlatform local desktop posh shell 7.4.1

Describe the bug When I execute the script, I have an error and script finish without any data exported:

0 'Available Private Endpoint Types' - Please use another Subscription for the AzContext (current subscriptionId: 'xxx') -> use parameter: -SubscriptionId4AzContext '' Exception: C:\Scripts\AzureGovWiz\AzGovVizParallel.ps1:34266 Line | 34266 | Throw $throwmsg | ~~~ | 0 'Available Private Endpoint Types' - Please use another Subscription for the AzContext (current | subscriptionId: '029cb112-892a-4684-9bf3-6a000a0bc1c1') -> use parameter: -SubscriptionId4AzContext | ''

jtracey93 commented 9 months ago

@JulianHayward can you advise?

JulianHayward commented 9 months ago

@ksagala please proceed as per the output:

image

parameters ref

Example:

.\pwsh\azgovvizparallel.ps1 -SubscriptionId4AzContext 'GUID-of-the-subscription'

You may also check if/that the resource provider microsoft.network is registered for the subscription

jtracey93 commented 8 months ago

@ksagala did this resolve it for you?

ksagala commented 8 months ago

Thanks for your advice, with -SubscriptionId4AzContext script works properly for me.