Find azure servers from the cmdb_ci_server table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2023 03:56 AM
Hi all
Is there a field from which we can determine that a server is an azure server in the cmdb_ci-server table?
I know that there is a field called 'is virtual', but that would help to distinguish between physical & virtual servers.
I would like to get all the azure servers from that table.
Any help would be appreciated!
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2023 08:17 AM
Yes, there is a field in the cmdb_ci_server table that can be used to determine if a server is hosted on Azure. The field is called "discovery_source" and it stores the name of the discovery probe that was used to discover the server.
If the server was discovered using the Azure discovery probe, then the value of the discovery_source field will be "Azure". You can use this information to filter the cmdb_ci_server table and retrieve all the servers that were discovered using the Azure probe.
Here's an example query that you can use:
SELECT * FROM cmdb_ci_server WHERE discovery_source = 'Azure'
This query will retrieve all the servers from the cmdb_ci_server table that were discovered using the Azure probe.
Please mark my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2023 12:44 AM
Hi @Syedmd08
Thanks for the information. Unfortunately, I can't see records with discovery_source = 'Azure'. Majority of them have discovery_source = 'ServiceNow'. Few have SCCM, but that's it.
Thanks,
Nikita Kale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2024 08:29 AM
Was this ever solved, I have the same requirement and discovery_source doesnt have any entries for Azure!