Closed JasonJohnsonAHEAD closed 10 months ago
@JasonJohnsonAHEAD thanks for reporting. Does this error occur permanently each time you run azgvz?
Yes
From: quoteee @.> Date: Tuesday, November 7, 2023 at 9:19 AM To: JulianHayward/Azure-MG-Sub-Governance-Reporting @.> Cc: Jason Johnson @.>, Mention @.> Subject: Re: [JulianHayward/Azure-MG-Sub-Governance-Reporting] Error Dump (Issue #215)
@JasonJohnsonAHEADhttps://github.com/JasonJohnsonAHEAD thanks for reporting. Does this error occur permanently each time you run azgvz?
— Reply to this email directly, view it on GitHubhttps://github.com/JulianHayward/Azure-MG-Sub-Governance-Reporting/issues/215#issuecomment-1799276903, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A4WYXDP4JNA2MFC7ZZVSZSLYDJUSDAVCNFSM6AAAAAA7BL6EEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJZGI3TMOJQGM. You are receiving this because you were mentioned.Message ID: @.***>
interesting..
can you try this a couple of times?
$azAPICallConf = initAzAPICall -DebugAzAPICall $true
$subscriptionId = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' #guid
$currentTask = "Getting ResourceLocks for Subscription: '$($subscriptionId)'"
$uri = "$($azAPICallConf['azAPIEndpointUrls'].ARM)/subscriptions/$($subscriptionId)/providers/Microsoft.Authorization/locks?api-version=2016-09-01"
$method = 'GET'
$requestSubscriptionResourceLocks = AzAPICall -AzAPICallConfiguration $azAPICallConf -uri $uri -method $method -currentTask $currentTask
`
@JasonJohnsonAHEAD any news?
strike
closed
AzGovViz version v6_major_20230330_1
CodeRunPlatform Powershell / VSCode
Describe the bug
[AzAPICallErrorHandler 1.1.83] Getting ResourceLocks for Subscription: 'XYZ-ETS-PRODUCTION-01' ('xxxxxxx') [quotaId:'EnterpriseAgreement_2014-09-01'] try #1; uri:"https://management.azure.com/subscriptions/xxxxx/providers/Microsoft.Authorization/locks?api-version=2016-09-01"; return: (StatusCode: '502' (BadGateway)) <.code: ''> <.error.code: 'BadGateway'> | <.message: ''> <.error.message: 'The issue encountered for 'Microsoft.Authorization'; cannot fulfill the request.'> - (plain : @{error=}) - AzAPICall: Stop Parameters: accountType:User ARMLocations:eastus eastus2 southcentralus westus2 westus3 australiaeast southeastasia northeurope swedencentral uksouth westeurope centralus southafricanorth centralindia eastasia japaneast koreacentral canadacentral francecentral germanywestcentral italynorth norwayeast polandcentral switzerlandnorth uaenorth brazilsouth centraluseuap israelcentral qatarcentral centralusstage eastusstage eastus2stage northcentralusstage southcentralusstage westusstage westus2stage asia asiapacific australia brazil canada europe france germany global india japan korea norway singapore southafrica switzerland uae uk unitedstates unitedstateseuap eastasiastage southeastasiastage brazilus eastusstg northcentralus westus jioindiawest eastus2euap southcentralusstg westcentralus southafricawest australiacentral australiacentral2 australiasoutheast japanwest jioindiacentral koreasouth southindia westindia canadaeast francesouth germanynorth norwaywest switzerlandwest ukwest uaecentral brazilsoutheast azAccountsVersion:2.13.1 azAPICallModuleVersion:1.1.83 codeRunPlatform:Console debugAzAPICall:False debugWriteMethod:Host DoAzureConsumption:False DoNotIncludeResourceGroupsAndResourcesOnRBAC:False DoNotIncludeResourceGroupsOnPolicy:False DoNotShowRoleAssignmentsUserData:False DoPSRule:False GitHubActionsOIDC:False gitHubRepository:aka.ms/AzGovViz HierarchyMapOnly:False LargeTenant:False ManagementGroupsOnly:False NoALZPolicyVersionChecker:False NoJsonExport:False NoMDfCSecureScore:False NoNetwork:False NoPolicyComplianceStates:False NoResourceProvidersAtAll:False NoResourceProvidersDetailed:False NoResources:False NoStorageAccountAccessAnalysis:False onAzureDevOps:False onAzureDevOpsOrGitHubActions:False onGitHubActions:False PolicyAtScopeOnly:False ProductVersion:6.3.3 PSRuleFailedOnly:False psVersion:7.3.9 RBACAtScopeOnly:False skipAzContextSubscriptionValidation:False subscriptionId4AzContext:undefined subscriptionQuotaId:EnterpriseAgreement_2014-09-01 tenantId4AzContext:undefined ThrottleLimit:10 userObjectId:xxxxxxxxxxx userType:Guest writeMethod:Host [AzAPICallErrorHandler 1.1.83] Getting ResourceLocks for Subscription: 'XYZ-ETS-PRODUCTION-01' ('xxxxxxxxxxx') [quotaId:'EnterpriseAgreement_2014-09-01'] try #1; uri:"https://management.azure.com/subscriptions/xxxxxxxxxxxxxx/providers/Microsoft.Authorization/locks?api-version=2016-09-01"; return: (StatusCode: '502' (BadGateway)) <.code: ''> <.error.code: 'BadGateway'> | <.message: ''> <.error.message: 'The issue encountered for 'Microsoft.Authorization'; cannot fulfill the request.'> - unhandledErrorAction: Stop