Events went into error state for Azure Gov cloudDescriptionThe Azure events handler sets the LDC to a hardcoded value as "westus", this works with standard azure accounts as "westus" is a valid LDC and will be present in all service accounts. In the case of gov cloud accounts, "westus" is not present as a valid LDC. The script sn_cmp.CloudPatternInvocation gets the service account and tries to find "westus" in the list of its LDCs and fails to do so. As a result, the check before invoking the pattern fails because ldcsysid is null Issue: Azure cloud events (sn_cmp_cloud_event) records are getting errored out for the Azure US gov service account, and no CI is created or updated. with the error message like: "@@@CloudPatternInvocation->invokeQuickDiscovery expect to get all sysIds out of the string names from the mandatory parameters: event configObj- {"Steps to Reproduce 1. Setup cloud events for Azure Gov cloud for a resource group.2. Perform discovery for the datacenter which include the above resource group.2. Make some vm operations like start/stop and check "sn_cmp_cloud_event" table for azure events.Observation: All events received in error state, also vm state remains unchanged at instance level. PFA.Tested on:Statistics for: Demo Server @ cpgevent2.service-now.com:80 at: Wed Nov 16 20:05:40 PST 2022 (Refresh)Connected to cluster node: app129020.phx201.service-now.com:cpgevent2001Build name: HEAD (Master)Build date: 11-14-2022_1730Instance name: cpgevent2Instance ID: 295c7235dbdad1582f68c59705961982Node ID: ec223cfb03e006041500e6994f28e030Instance State: ONLINEIP address: 10.180.129.20MID buildstamp: 11-14-2022_1730WorkaroundPlease apply the attached updateset Overview of updateset changes: In the script, if we are unable to find the ldc in the ldcsmap of a service account, then we should use another LDC that is there in the service account. We have picked the first value that is present in the LDC map of that service account where westus is not found. if(!ldcsMap[configObj.ldc]) { configObj.ldc = Object.keys(ldcsMap)[0]; }Related Problem: PRB1621422