404 error subscription not found by pattern Azure Datacenter discovery while runnning cloud schedule ,azure cloud discovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 02:35 AM
Hello Experts,
we have enabled Azure cloud discovery of root management group in our prod environment. Activated the property glide.discovery.cdu.auto_refresh_sub_accounts_and_ldcs but still its running Azure datacenter discovery for subscriptions that have been deactivated in azure. Getting a lot of 404 subscriptions not found errors for this pattern:Azure Datacenter discovery . How to deal with this situation. My understanding is subscriptions got discovered when they existed but now it has been deleted. so it should not try to discover datacenters for these subscriptions.
However, thats not the case, it is considering these non-existing subscriptions and throwing erros. my question is can this be automatically handled that if the subscription is not found in azure , it should not be part of Cloud Discovery running on management group? .
Error details :
Status: 404 Response: {3} (script_include:AzureApiCommand; line 137). Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: com.snc.sw.exception.
If i try to access the said subscription via POSTMAN i get the same error, 404 subscription not found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 02:44 AM
cc

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 04:38 PM
Are the subscriptions still part of the management group? if so, these will get picked up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 10:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2022 11:50 PM
when i search in azure portal these subscriptions are not found . my question is how do we remove such subscriptions from being included in schedule?