
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 08:07 AM
When ServiceNow Discovers Azure, how does Discovery determine the correct ServiceNow CI Type to create?
That is, when ServiceNow Discovers an Azure object of type "virtualMachines", Discovery creates a CI of CI Type "cmdb_ci_vm_instance". Some types of Azure CI Type to CMDB CI Type are shown here.
Azure CI Type ServiceNow CMDB CI Type
virtualMachines cmdb_ci_vm_instance
networkInterfaces cmdb_ci_nic
virtualNetworks cmdb_ci_network
disks cmdb_ci_storage_volume
publicIPAddresses cmdb_ci_cloud_public_ipaddress
networkSecurityGroups cmdb_ci_compute_security_group
Examples
- If ServiceNow Discovers an object with the Object ID "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/tom-rg/providers/Microsoft.Compute/virtualMachines/tom-vm" -- the Azure CI Type is "virtualMachines" -- Discovery creates a CI of type "cmdb_ci_vm_instance"
- If ServiceNow Discovers an object with the Object ID "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/tom-rg/providers/Microsoft.Network/networkInterfaces/tom-vm52" -- the Azure CI Type is "networkInterfaces" -- Discovery creates a CI of type "cmdb_ci_nic"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 03:12 AM
Hello,
Actually it is not like ServiceNow collects all resources and then sorts them to tables.
It is more like "I want cmdb_ci_vm_instance, so let's make these calls"
If you are using Cloud Discovery, you can explore all patterns named "Azure [...]". You can open the patterns and see those API call.
If you are using Service Graph, it is less obvious but you can explore the Azure > Data Sources "SG-Azure [...]" Data sources.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 03:12 AM
Hello,
Actually it is not like ServiceNow collects all resources and then sorts them to tables.
It is more like "I want cmdb_ci_vm_instance, so let's make these calls"
If you are using Cloud Discovery, you can explore all patterns named "Azure [...]". You can open the patterns and see those API call.
If you are using Service Graph, it is less obvious but you can explore the Azure > Data Sources "SG-Azure [...]" Data sources.
Regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 04:53 PM
Hello, @marcguegueniat,
Thank you for your reply. That is in fact the correct solution.
I was hoping to find a table in ServiceNow that mapped Microsoft Azure Resource Types to CMDB CI Types. Alas, no such table exists.
I am investigating the Azure Discovery Patterns now.