Retrieve newer accounts/sub-accounts automatically via Cloud Discovery
Import
·
Jan 28, 2021
·
article
This article is the result of the recent asks from the customer(s) regarding the possibility of discovering the sub-accounts automatically in a Cloud i.e., I have a master account and few member accounts as well so if tomorrow a new member account is added then can I get it seamlessly and if so, how do I.
In PARIS, we released the feature called - "Auto-Refresh of Sub-Accounts and Datacenters"
This feature is controlled by?
- A system property – “glide.discovery.cdu.auto_refresh_sub_accounts_and_ldcs”
- Values – True/False.
This feature is applicable for?
- All Cloud Discovery schedules i.e., Discovery type is ”Cloud Resources”
Working of the Feature?
- Every Discovery Run kicked off automatically i.e., as per schedule goes through the script include – “Discovery”
- The API – “_syncAndUpdateLDCsAndSubAccountsForSchedule” in it is responsible for fetching all the data
- API triggers the patterns configured in the “Cloud topology discovery pattern” (sa_cloud_topology_discovery_pattern) table
- Fetching sub Accounts and datacenters is dependent on the Cloud Schedule configuration
System Property is set to "FALSE"
- Deletes the invalid configuration of the Discovery Schedule in the table “cmp_discovery_ldc_config” table
- No refresh of accounts and datacenter is triggered.
System Property is set to "TRUE"
- Refreshes the LDCs for existing member accounts (related projects (GCP) as well) so that missing or deleted LDCs are restored back in the system.
- If the user has selected “all accounts for master” (Toggled the slider to select all members in the Discovery Schedule- CDU UI/Cloud Wizard UI) then it means if any new sub-account is discovered then we create an LDC config for it also. Thereby syncing the new accounts automatically for the current discovery schedule.
- Deletes the invalid configuration of the Discovery Schedule in the table “cmp_discovery_ldc_config” table
Type of Cloud Schedules supported?
- AWS Master and Member account(s)
- Azure Management Group and Subscription(s)
- GCP Folder and Project(s)
- GCP Organization and Related Project(s)
View original source
https://www.servicenow.com/community/itom-articles/retrieve-newer-accounts-sub-accounts-automatically-via-cloud/ta-p/2320372
