When Discovering Azure, How Determine The Corresponding ServiceNow CI Type?

Tom Rausch
Tera Guru

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"
1 ACCEPTED SOLUTION

marcguegueniat
Kilo Sage

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,

View solution in original post

2 REPLIES 2

marcguegueniat
Kilo Sage

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,

Tom Rausch
Tera Guru

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.