Microsoft Azure Cloud components discovery using patterns

  • Release version: Yokohama
  • Updated January 30, 2025
  • 23 minutes to read
  • Discovery uses multiple patterns to discover components of the Microsoft Azure Cloud deployment during horizontal discovery. Discovering some of these resources may require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store.

    Request new or enhanced Patterns on the ServiceNow® Store

    Visit the ServiceNow Store to view all the available updates and for information about submitting requests to the store. For cumulative release notes information for all released apps, see the ServiceNow Store version history release notes.

    Prerequisites

    Verify that the applications are up to date.
    • Discovery and Service Mapping Patterns
    • CMDB CI Class Models
    • Visibility Content
    Activate the cloud-related CI relationships
    To include discovered components into service instances, enable CI relationships used in tag-based discovery by Service Mapping. These CI relationships are available from the 1.0.68 release on the ServiceNow Store. For operational steps, see Tag-based discovery configuration.
    Azure Availability Set
    Wait for the Clean-Up job for Availability zone to clear availability set record schedule job to delete all the pre-populated availability set's Configuration Items (CI) in the cmdb_ci_azure_availability_set table.
    Azure Availability Zone

    To run a discovery with Azure Availability Zone, register the subscription ID to the AvailabilityZonePeering feature with AZ CLI using az feature register -n AvailabilityZonePeering --namespace Microsoft.Resources to use the Check Zone Peering API. Check the status with az feature show -n AvailabilityZonePeering --namespace Microsoft.Resources before running discovery.

    Set up Azure service accounts
    Enable Cloud Discovery to access your Azure environment. For more information, see Set up Azure service accounts.
    Create an Azure cloud discovery schedule
    For more information, see Create an Azure Discovery schedule in Discovery Admin Workspace.
    (Optional) Populate Service Account and Logical Datacenter fields in cloud CIs
    Starting with Discovery and Service Mapping Patterns version 1.30.2, you can improve query performance by populating Service Account and Logical Datacenter fields directly in cloud CIs. For more information, see Improved query performance with direct field population in CI tables.

    Verify the REST API Permissions

    Download the Cloud Discovery patterns spreadsheet so you can grant user permissions required for running the Discovery patterns. In addition to permissions, the spreadsheet also includes useful information such as pattern names, types, CI Classes, and links to vendor documentation. New patterns are available quarterly, so check periodically to be sure you have the latest version of the spreadsheet.

    Azure resources discovery by datacenters

    Azure has multiple datacenters around the world, but resources like load balancers and virtual machines are typically deployed in only some of them. The Azure Datacenter Discovery pattern executes before all other Azure patterns to identify the datacenters that have resources related to your service account ("active") and the datacenters that don't have your resources ("passive"). This model improves the performance of the Azure discovery. This execution model is more efficient than the previous one, in which all datacenters were discovered regardless of having relevant resources in them.

    After identifying the "active" and "passive" datacenters, the Discovery schedule continues to execute all Azure patterns only for the "active" datacenters, to discover your Azure cloud resources. The "passive" datacenters are ignored while running the schedule.

    You might notice differences in Azure discovery log, in discovery time and in the CMDB, depending on the service account and MID Server property settings.

    Datacenters that have already been discovered before the upgrade to Discovery and Service Mapping Patterns version 1.15.0, remain in the Azure Datacenters table. However, the discovery runtime behavior is now determined by the value of the MID Server property mid.cloud.discovery.sonar.discover_all_azure_datacenters. The property is set to false by default, to limit the discovery execution to the "active" datacenters, rather than all datacenters. You can discover all datacenters for a service account, including "passive" ones, by setting the property to true. For more information, see: Create a MID Server property.

    If the MID Server property is set to false, the Azure Datacenters table shows only active datacenters. All other behaviors remain unchanged from previous Discovery and Service Mapping Patterns versions.

    Table 1. Differences in datacenter discovery by Discovery and Service Mapping Patterns version
    Discovery and Service Mapping Patterns version MID Server property setting Discovered datacenters Datacenters contained in Azure Datacenters table Datacenters displayed in discovery log
    Discovery and Service Mapping Patterns starting with version 1.15.0 False (default) Active only Active only Active only
    Discovery and Service Mapping Patterns starting with version 1.15.0 True All datacenters All datacenters All datacenters
    Discovery and Service Mapping Patterns before version 1.15.0 False (default) Active only All datacenters Active only
    Discovery and Service Mapping Patterns before version 1.15.0 True All datacenters All datacenters All datacenters

    For management groups, Azure Cloud Discovery discovers all Azure datacenters.

    Starting with Discovery and Service Mapping Patterns version 1.29.0, the Refresh Datacenters flow displays all regions, not just active ones. You don’t need to create another schedule when a resource is added or a datacenter switches from passive to active.

    Azure Hardware Type discovery

    Hardware Type discovery has undergone three model changes in recent years. The 1.15.0 model triggers the Hardware Type pattern and the Virtual Machine pattern after the Azure Datacenter Discovery pattern. Starting Discovery and Service Mapping Patterns plugin version 1.15.0, Cloud Discovery identifies which Hardware Type model is used, and launches only one of the two patterns: Hardware Type (LP) or Cloud Hardware Type (LP).
    Table 2. Migration to the Azure Hardware Type discovery model- Use cases
    Discovery and Service Mapping Patterns version Hardware Type Migration status Which pattern executes Discovery result
    Prior to 1.0.75 Haven't migrated to the new model Hardware Type (LP) pattern

    The CI type created: [cmdb_ci_compute_template]

    Discovery and Service Mapping Patterns version 1.0.75

    The migration to the new model is done by migration script. See KB0955939

    Hardware Type (LP) pattern

    The CI type created: [cmdb_ci_cloud_hardware_type]

    Discovery and Service Mapping Patterns version 1.6.0

    The Hardware Type new model is provided OOB, enabled with the system property: sn_itom_pattern.use a single hardware type for cloud datacenters. For more information, seeKB1285337.

    According to KB1285337 Flow Diagram

    The CI type created: According to KB1285337

    Discovery and Service Mapping Patterns 1.15.0

    The Hardware Type new model is provided OOB enabled with the system property: sn_itom_pattern.use a single hardware type for cloud datacenters. For more information, seeKB1285337.

    The flow is as described in KB1285337. However, only one pattern executes. The pattern that used to gracefully terminate doesn't execute.

    Either Hardware Type (LP) pattern or Cloud Hardware Type (LP) pattern executes.

    Azure SQL Managed Instance license discovery

    The Azure DataBase (LP) pattern extension Azure SQL Managed Instance license discovers Azure SQL Managed Instance license information and populates the license type in the Key Value [cmdb_key_value] table of Cloud Database CI [cmdb_ci_cloud_database].

    Required plugins and applications
    • Software Asset Management Professional for Microsoft
    • Visibility Content
    Discovered resources and relationships
    Resources discovered using the Azure DataBase (LP) pattern extension: Azure SQL Managed Instance license
    Relationships discovered using the Azure DataBase (LP) pattern extension: Azure SQL Managed Instance license

    Azure Marketplace discovery

    The Azure - Marketplace LB (LP) pattern discovers the following Azure Marketplace products:
    • SaaS
    • Azure Application
    • Virtual Machine
      Note:
      The pattern discovers only virtual machines (VMs) created from third-party or commercial marketplace images.
    Discovered resources and relationships
    Resources discovered by the Azure - Marketplace LB (LP) pattern
    Relationships discovered using the Azure - Marketplace LB (LP) pattern

    Data collected by Discovery during horizontal discovery

    Resources discovered by the Microsoft Azure - Application LB (LP) pattern
    Table 3. Cloud Load Balancer [cmdb_ci_cloud_load_balancer]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Name [name] The Name or ID if no Name is specified for the load balancer.
    Location [location] The path of the load balancer.
    State [state] The current state of the load balancer.
    Install Status [install_status] Resource provisioning status.
    IP Address [ip_address] IP Address of the load balancer.
    Fully qualified domain name [fqdn] The fully qualified domain name of the load balancer.
    DNS Name [dns_name] The DNS name of the load balancer.
    Comments [comments] Identifier for internal usage (deletion strategy).
    Table 4. Cloud LB IPAddress [cmdb_ci_cloud_lb_ipaddress]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    IP Address [ip_address] IP address of the load balancer.
    IPAddress Type [ipaddress_type] The type of the IP address. Possible values are private or public.
    Fully qualified domain name [fqdn] The fully qualified domain name of the load balancer.
    Comments [comments] Identifier for internal usage (deletion strategy).
    Install Status [install_status] Resource provisioning status.
    Table 5. Load Balancer Pool [cmdb_ci_lb_pool]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Name [name] The Name or ID if no Name is specified for the load balancer pool.
    Location [location] Path of the load balancer pool.
    Install Status [install_status] Resource provisioning status.
    Comments [comments] Identifier for internal usage (deletion strategy).
    Table 6. Load Balancer Service [cmdb_ci_lb_service]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Name [name] The Name or ID if no Name is specified for the load balancer service.
    Location [location] Path of the load balancer service.
    Port [port] The TCP port that the load balancer service listens to.
    Install Status [install_status] Resource provisioning status.
    Comments [comments] Identifier for internal usage (deletion strategy).
    Resources discovered by the Microsoft Azure - Network and Subnet (LP) pattern
    Table 7. Cloud Network [cmdb_ci_network]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Name [name] The Name or ID if no Name is specified for the cloud network.
    Location [location] Path of the network.
    State [state] The current state of the network.
    Install Status [install_status] Resource provisioning status.
    CIDR [cidr] CIDR representation of the network. For example, 10.0.0.0/24.
    Table 8. Cloud Subnet [cmdb_ci_cloud_subnet]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Name [name] The Name or ID if no Name is specified for the cloud subnet.
    Location [location] Identifier for internal usage (deletion strategy).
    State [state] The current state of the subnet.
    Install Status [install_status] Resource provisioning status.
    CIDR [cidr] CIDR representation of the subnet. For example, 10.0.0.0/24.
    Resources discovered by the Microsoft Azure - NIC (LP) pattern
    Table 9. Cloud Mgmt Network Interface [cmdb_ci_nic]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Name [name] The Name or ID if no Name is specified for the network interface.
    Location [location] Path of the network interface.
    Install Status [install_status] Resource provisioning status.
    State [state] The current state of the network interface.
    Public IP [public_ip] The address of the Elastic IP address bound to the network interface.
    Private IP [private_ip] The IPv4 address of the network interface within the subnet.
    Primary [primary] True/False. Defines if the network interface is the primary network interface or not.
    MAC Address [mac_address] The MAC address of the network interface.
    Public DNS [public_dns] The public DNS name of the network interface.
    Resources discovered by the Microsoft Azure - Private Gateway (LP) pattern
    Table 10. Virtual Private Gateway [cmdb_ci_virtual_pvt_gateway]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Name [name] The Name or ID if no Name is specified for the private gateway.
    Location [location] Path of the private gateway.
    Connection Type [connection_type] Type of VPN connection the gateway supports.
    Operational status [operational_status] The state of the resource.
    Install Status [install_status] Resource provisioning status.
    Table 11. Virtual Private Gateway Endpoint [cmdb_ci_endpoint_vpg]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Name [name] The Name or ID if no Name is specified for the endpoint.
    Location [location] Path of the endpoint.
    Resources discovered by the Microsoft Azure - Public IP (LP) pattern
    Table 12. Cloud Public IP Address [cmdb_ci_cloud_public_ipaddress]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Name [name] The Name or ID if no Name is specified for the IP address.
    Location [location] Path of the IP address.
    State [state] The current state of the IP address.
    Public IP Address [public_ip_address] The address of the Elastic IP address.
    Public DNS [public_dns] The public DNS name.
    Install Status [install_status] Resource provisioning status.
    Resources discovered by the Microsoft Azure - Resource Group (LP) pattern
    Table 13. Resource Group [cmdb_ci_resource_group]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Name [name] The Name or ID if no Name is specified for the resource group.
    Location [location] Path of the resource group.
    State [state] The current state of the resource group.
    Install Status [install_status] Resource provisioning status.
    Resources discovered by the Microsoft Azure - Route Table (LP) pattern
    Table 14. Route Table [cmdb_ci_route_table]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Name [name] The Name or ID if no Name is specified for the route table.
    Location [location] Path of the route table.
    Install Status [install_status] Resource provisioning status.
    State [state] The current state of the route table.
    Resources discovered by the Microsoft Azure - Security Group (LP) pattern
    Table 15. Compute Security Group [cmdb_ci_compute_security_group]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Name [name] The Name or ID if no Name is specified for the security group.
    Location [location] Path of the security group.
    State [state] The current state of the security group.
    Install Status [install_status] Resource provisioning status.
    Resources discovered by the Microsoft Azure - SQL Server (LP) pattern
    Table 16. Virtual Machine Instance [cmdb_ci_vm_instance]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Location [location] Path of the VM instance.
    Table 17. Key Value [cmdb_key_value]
    Field Description
    Key [key] Server_License_Type_automatic
    Value [value] The value is one of the following options:
    • Azure Hybrid Benefit: BYOL
    • Pay-as-you-go licensing: License Included
    Configuration item [configuration_item] References the Virtual Machine Instance [cmdb_ci_vm_instance] table.
    Resources discovered by the Microsoft Azure - Storage Account (LP) pattern
    Table 18. Cloud Storage Account [cmdb_ci_cloud_storage_account]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Name [name] The Name or ID if no Name is specified for the storage account.
    Location [location] Path of the storage account.
    Sku Name [sku_name] The name of the stock keeping unit (SKU) for backup frequency.
    Install Status [install_status] Resource provisioning status.
    State [state] The current state of the storage account.
    Resources discovered by the Microsoft Azure - Storage Containers (LP) pattern
    Table 19. Storage Container [cmdb_ci_storage_container]
    Field Description
    Name [name] The name of the storage container.
    Object ID [object_id] A unique identifier for the storage container.
    Comments [comments] Identifier for internal usage (deletion strategy).
    Install Status [install_status] Resource provisioning status.
    Resources discovered by the Microsoft Azure - Storage Volume (LP) pattern
    Table 20. Storage Volume [cmdb_ci_storage_volume]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Name [name] The Name or ID if no Name is specified for the storage volume.
    Volume ID [volume_id] The volume type. For example:
    • gp2 for General Purpose SSD
    • io1 for Provisioned IOPS SSD
    • st1 for Throughput Optimized HDD
    • sc1 for Cold HDD
    • standard for Magnetic volumes
    Location [location] Path of the storage volume.
    State [state] The current state of the storage volume.
    Install Status [install_status] Resource provisioning status.
    Size [size] The size of the volume.
    Size bytes [size_bytes] The size of the volume in bytes.
    Storage type [storage_type] For example, hard-coded value "block".
    Comments [comments] Identifier for internal usage (deletion strategy).
    Resources discovered by the Microsoft Azure - Sub Account (LP) pattern
    Table 21. Cloud Service Account [cmdb_ci_cloud_service_account]
    Field Description
    Object ID [object_id] A unique identifier, allocated by Microsoft Azure for this resource.
    Account Id [account_id] The unique identifier (ID) of the account.
    Name [name] The Name or ID if no Name is specified for the service account.
    Datacenter Type [datacenter_type] cmdb_ci_azure_datacenter
    Discovery credentials [discovery_credentials] Reference field to the related Microsoft Azure credentials.
    Datacenter URL [datacenter_url] The URL of the datacenter.
    Parent account [parent_account] Reference to the primary account, if it exists.
    Is management account [is_master_account] The Boolean attribute indicating if this is the primary account or not.
    Resources discovered by the Microsoft Azure WebSite (LP) pattern and Microsoft Azure WebSite pattern
    Table 22. Cloud WebServer [cmdb_ci_cloud_webserver]
    Field Description
    Name [name] The name of the Azure web server.
    Object ID [object_id] The ID of the Azure web server.
    IP Address [ip_address] The IP address of the web server.
    Fully qualified domain name [fqdn] The fully qualified domain name (FQDN) of the web server.
    Vendor [vendor] The vendor is Microsoft.
    Install Status [install_status] The install status of the web server.
    State [state] The operational state of the web server.
    Operational status [operational_status] The operational status of the web server.
    Table 23. IP Address [cmdb_ci_ip_address]
    Field Description
    Name [name] The IP address of the web server.
    IP Address [ip_address] The IP address of the web server.
    Fully qualified domain name [fqdn] The fully qualified domain name (FQDN).
    Vendor [vendor] The vendor is Microsoft.
    Install Status [install_status] The install status.
    Operational status [operational_status] The operational status.
    Resources discovered using the Azure DataBase (LP) pattern
    Table 24. Cloud DataBase [cmdb_ci_cloud_database]
    Field Description
    Fully qualified domain name [fqdn] The FQDN that Microsoft Azure assigned to your database.
    Name [name] The name of the database that you created in Microsoft Azure.
    Object ID [object_id] The identification name of the database.
    Operational Status [operational_status] The operational status of the database.
    Type [type] The type of database you created.
    State [state] The state of the database: Whether it's Available or Terminated.
    Vendor [vendor] The vendor name is Azure.
    Version [version] The version of the database.
    Category [category]* The stock keeping unit (SKU) family.
    * Populated only by the Azure SQL Managed Instance license pattern extension. For more information, see the "Azure SQL Managed Instance license discovery" section.
    Table 25. Cloud Hardware Type [cmdb_ci_cloud_hardware_type]
    Field Description
    Object ID [object_id] A unique identifier for the hardware type.
    Name [name] Name for the hardware type.
    vCPUs [vcpus] Number of virtual CPU cores.
    Provider [provider] Provider for the hardware type: Azure.
    Table 26. IP Address [cmdb_ci_ip_address]
    Field Description
    Netmask [netmask] Netmask of the Azure database.
    Resources discovered using the Azure DataBase (LP) pattern extension: Azure SQL Managed Instance license
    Table 27. Key Value [cmdb_key_value]
    Field Description
    Key [key] SQL_Server_PaaS_Managed_Instance_License_Type_automatic
    Value [value] License type. The following maps the Azure portal license to ServiceNow values:
    • Azure Hybrid Benefit: BYOL
    • Pay as you go: License Included
    • Hybrid Failover rights: Hybrid Failover
    Configuration item [configuration_item] References the Cloud DataBase [cmdb_ci_cloud_database] table.
    Table 28. Serverless Hardware [cmdb_ci_serverless_hardware]
    Field Description
    Object ID [object_id] Object ID of the Azure cloud database.
    Name [name] SKU name.
    Cloud Vendor [cloud_vendor] Cloud vendor of the serverless hardware: MS Azure.
    CPU core count [cpu_core_count] Number of virtual cores (vCores).
    CPU core thread [cpu_core_thread] Number of vCores.
    CPU count [cpu_count] Number of vCores.
    Category [category] vCore purchasing model.
    Subcategory [subcategory] SKU tier.
    Host Type [host_type] Host type: PaaS.
    Resources discovered by the Azure - Marketplace LB (LP) pattern

    The Azure - Marketplace LB (LP) pattern introduces the following CI class that extends an existing CMDB class.

    Table 29. CI class introduced by this pattern
    CI class Extends from
    Deployed Marketplace Product [cmdb_ci_deployed_marketplace_product] Virtual Machine Object [cmdb_ci_vm_object]
    Table 30. Deployed Marketplace Product [cmdb_ci_deployed_marketplace_product]
    Field Description
    Name [name] Name of the Cloud resource, usually the marketplace offering or SKU name.
    Object ID [object_id] A unique resource ID of the Cloud resource.
    Resource Type [resource_type] Service in Cloud Marketplace. For example: microsoft.compute/virtualmachines.
    Plan Name [plan_name] Billing or SKU plan for a resource from the Cloud Marketplace. For example: Pay as You Go.
    Market [market] International Organization for Standardization (ISO) code of the geographical market where the resource is sold. For example: US or EU.
    Organization Id [organization_id] A unique identifier for the organization or publisher that owns the marketplace resource.
    Table 31. Marketplace Product Details [marketplace_product_details]
    Field Description
    Product Code [product_code] A unique product code of the resource within the Cloud Marketplace.
    Publisher Name [publisher_name] Organization or individual responsible for creating and offering the product or service.
    Version [version] Release number or iteration of the product.
    Deployed On [deployed_on] References the Deployed Marketplace Product [cmdb_ci_deployed_marketplace_product] table.
    Resources discovered by the Azure - Sub Account (LP) pattern extension: Azure Management Groups

    The Azure - Sub Account (LP) pattern extension introduces the following CI class that extends an existing CMDB class.

    Table 32. CI class introduced by this pattern
    CI class Extends from
    Azure Management Group [cmdb_ci_azure_management_group] Cloud Account Group [cmdb_ci_cloud_account_group]
    Table 33. Cloud Organizations [cmdb_ci_cloud_org]
    Field Description
    Name [name] Tenant ID or name.
    • Tenant ID: When using management-level credentials
    • Tenant name: When using tenant-level credentials
    Object ID [object_id] Tenant ID.
    DNS Domain [dns_domain] Domain name entered during registration. For example: servicenow.com.

    This field is only populated when using tenant-level credentials.

    Table 34. Azure Management Group [cmdb_ci_azure_management_group]
    Field Description
    Name [name] Management group name.
    Object ID [object_id] Management group name and tenant ID in the following format: name+@+tenantId.

    For example: itomMgmtGroup@8bcff-vdc-btrv.

    Parent [parent] References the direct parent Azure Management Group [cmdb_ci_azure_management_group] table.

    CI relationships

    The Microsoft Azure patterns create the following relationships and references to support Microsoft Azure discovery. References link to records in other tables and don't appear in the CI Relationship [cmdb_rel_ci] table.

    Relationships discovered using the Microsoft Azure - Application LB (LP) pattern
    Table 35. CI relationships
    CI Relationship CI
    Cloud Load Balancer [cmdb_ci_cloud_load_balancer] Owns::Owned by Cloud LB IPAddress [cmdb_ci_cloud_lb_ipaddress]
    Cloud Load Balancer [cmdb_ci_cloud_load_balancer] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
    Load Balancer Service [cmdb_ci_lb_service] Hosted on::Hosts Cloud Load Balancer [cmdb_ci_cloud_load_balancer]
    Cloud Subnet [cmdb_ci_cloud_subnet] Contains::Contained by Cloud Load Balancer [cmdb_ci_cloud_load_balancer]
    Load Balancer Pool [cmdb_ci_lb_pool] Hosted on::Hosts Cloud Load Balancer [cmdb_ci_cloud_load_balancer]
    Resource Group [cmdb_ci_resource_group] Contains::Contained by Cloud Load Balancer [cmdb_ci_cloud_load_balancer]
    Relationships discovered using the Microsoft Azure - Network and Subnet (LP) pattern
    Table 36. CI relationships
    CI Relationship CI
    Cloud Network [cmdb_ci_network] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
    Cloud Network [cmdb_ci_network] Contains::Contained by Cloud Subnet [cmdb_ci_cloud_subnet]
    Resource Group [cmdb_ci_resource_group] Contains::Contained by Cloud Network [cmdb_ci_network]
    Relationships discovered using the Microsoft Azure - NIC (LP) pattern
    Table 37. CI relationships
    CI Relationship CI
    Cloud Mgmt Network Interface [cmdb_ci_nic] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
    Resource Group [cmdb_ci_resource_group] Contains::Contained by Cloud Mgmt Network Interface [cmdb_ci_nic]
    Cloud Subnet [cmdb_ci_cloud_subnet] Contains::Contained by Cloud Mgmt Network Interface [cmdb_ci_nic]
    Relationships discovered using the Microsoft Azure - Private Gateway (LP) pattern
    Table 38. CI relationships
    CI Relationship CI
    Virtual Private Gateway Endpoint [cmdb_ci_endpoint_vpg] Implement End Point To::Implement End Point From Virtual Private Gateway [cmdb_ci_virtual_pvt_gateway]
    Resource Group [cmdb_ci_resource_group] Contains::Contained by Virtual Private Gateway [cmdb_ci_virtual_pvt_gateway]
    Virtual Private Gateway [cmdb_ci_virtual_pvt_gateway] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
    Cloud Network [cmdb_ci_network] Use End Point To::Use End Point From Virtual Private Gateway Endpoint [cmdb_ci_endpoint_vpg]
    Relationships discovered using the Microsoft Azure - Public IP (LP) pattern
    Table 39. CI relationships
    CI Relationship CI
    Cloud Public IP Address [cmdb_ci_cloud_public_ipaddress] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
    Cloud Mgmt Network Interface [cmdb_ci_nic] Contains::Contained by Cloud Public IP Address [cmdb_ci_cloud_public_ipaddress]
    Resource Group [cmdb_ci_resource_group] Contains::Contained by Cloud Public IP Address [cmdb_ci_cloud_public_ipaddress]
    Relationships discovered using the Microsoft Azure - Resource Group (LP) pattern
    Table 40. CI relationships
    CI Relationship CI
    Azure Datacenter [cmdb_ci_azure_datacenter] Contains::Contained by Resource Group [cmdb_ci_resource_group]
    Relationships discovered using the Microsoft Azure - Route Table (LP) pattern
    Table 41. CI relationships
    CI Relationship CI
    Route Table [cmdb_ci_route_table] Contains::Contained by Route [cmdb_ci_route]
    Route Table [cmdb_ci_route_table] Contains::Contained by Cloud Network [cmdb_ci_network]
    Resource Group [cmdb_ci_resource_group] Contains::Contained by Route Table [cmdb_ci_route_table]
    Azure Datacenter [cmdb_ci_azure_datacenter] Contains::Contained by Route Table [cmdb_ci_route_table]
    Relationships discovered using the Microsoft Azure - Security Group (LP) pattern
    Table 42. CI relationships
    CI Relationship CI
    Cloud Subnet [cmdb_ci_cloud_subnet] Uses::Used by Compute Security Group [cmdb_ci_compute_security_group]
    Cloud Network [cmdb_ci_network] Contains::Contained by Compute Security Group [cmdb_ci_compute_security_group]
    Resource Group [cmdb_ci_resource_group] Contains::Contained by Compute Security Group [cmdb_ci_compute_security_group]
    Compute Security Group [cmdb_ci_compute_security_group] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
    Relationships discovered using the Microsoft Azure - Storage Account (LP) pattern
    Table 43. CI relationships
    CI Relationship CI
    Resource Group [cmdb_ci_resource_group] Contains::Contained by Cloud Storage Account [cmdb_ci_cloud_storage_account]
    Cloud Storage Account [cmdb_ci_cloud_storage_account] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
    Relationships discovered using the Microsoft Azure - Storage Containers (LP) pattern
    Table 44. CI relationships
    CI Relationship CI
    Block Endpoint [cmdb_ci_endpoint_block] Implement End Point To::Implement End Point From Storage Volume [cmdb_ci_storage_volume]
    Cloud Storage Account [cmdb_ci_cloud_storage_account] Contains::Contained by Storage Volume [cmdb_ci_storage_volume]
    Resource Group [cmdb_ci_resource_group] Contains::Contained by Storage Volume [cmdb_ci_storage_volume]
    Storage Volume [cmdb_ci_storage_volume] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
    Relationships discovered using the Microsoft Azure - Storage Volume (LP) pattern
    Table 45. CI relationships
    CI Relationship CI
    Resource Group [cmdb_ci_resource_group] Contains::Contained by Storage Volume [cmdb_ci_storage_volume]
    Storage Volume [cmdb_ci_storage_volume] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
    Relationships discovered using the Microsoft Azure - Sub Account (LP) pattern
    The Microsoft Azure - Sub Account (LP) pattern does not discover any relationships.
    Relationships discovered using the Microsoft Azure WebSite (LP) and Microsoft Azure WebSite patterns
    Table 46. CI relationships
    CI Relationship CI
    Cloud WebServer [cmdb_ci_cloud_webserver] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
    Cloud WebServer [cmdb_ci_cloud_webserver] Owns::Owned by IP Address [cmdb_ci_ip_address]
    Table 47. CI references
    CI Field Referenced CI
    Key Value [cmdb_key_value] Configuration item [configuration_item] Cloud WebServer [cmdb_ci_cloud_webserver]
    Relationships discovered using the Azure DataBase (LP) Pattern.
    Table 48. CI relationships
    CI Relationship CI
    Cloud DataBase [cmdb_ci_cloud_database] Owns::Owned by IP Address [cmdb_ci_ip_address]
    Cloud DataBase [cmdb_ci_cloud_database] Contains::Contained by Database [cmdb_ci_database]
    Cloud DataBase [cmdb_ci_cloud_database] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
    Database [cmdb_ci_database] Provisioned From::Provisioned Compute Template [cmdb_ci_compute_template]
    Database [cmdb_ci_database] Provisioned From::Provisioned Cloud Hardware Type [cmdb_ci_cloud_hardware_type]
    Compute Template [cmdb_ci_compute_template] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
    Compute Template [cmdb_ci_compute_template] Hosted on::Hosts Cloud Hardware Type [cmdb_ci_cloud_hardware_type]
    Relationships discovered using the Azure DataBase (LP) pattern extension: Azure SQL Managed Instance license
    Table 49. CI relationships
    CI Relationship CI
    Cloud DataBase [cmdb_ci_cloud_database] Runs on::Runs Serverless Hardware [cmdb_ci_serverless_hardware]
    Serverless Hardware [cmdb_ci_serverless_hardware] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
    Table 50. CI references
    CI Field Referenced CI
    Key Value [cmdb_key_value] Configuration item [configuration_item] Cloud DataBase [cmdb_ci_cloud_database]
    Relationships discovered using the Azure - Marketplace LB (LP) pattern
    Table 51. CI relationships
    CI Relationship CI
    Deployed Marketplace Product [cmdb_ci_deployed_marketplace_product] Hosted on::Hosts Cloud Service Account [cmdb_ci_cloud_service_account]
    Deployed Marketplace Product [cmdb_ci_deployed_marketplace_product] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
    Resource Group [cmdb_ci_resource_group] Contains::Contained by Deployed Marketplace Product [cmdb_ci_deployed_marketplace_product]
    Table 52. CI references
    CI Field Referenced CI
    Marketplace Product Details [marketplace_product_details] Deployed On [deployed_on] Deployed Marketplace Product [cmdb_ci_deployed_marketplace_product]
    Relationships discovered using the Azure - Sub Account (LP) pattern extension: Azure Management Groups
    Table 53. CI relationships
    CI Relationship CI
    Azure Management Group [cmdb_ci_azure_management_group] Contains::Contained by Cloud Service Account [cmdb_ci_cloud_service_account]
    Cloud Organizations [cmdb_ci_cloud_org] Contains::Contained by Azure Management Group [cmdb_ci_azure_management_group]
    Azure Management Group [cmdb_ci_azure_management_group] Contains::Contained by Azure Management Group [cmdb_ci_azure_management_group]
    Table 54. CI references
    CI Field Referenced CI
    Azure Management Group [cmdb_ci_azure_management_group]* Parent [parent] Azure Management Group [cmdb_ci_azure_management_group]
    *Only references the direct parent-child management group relationship.

    Events discovered by Discovery during horizontal discovery

    Discovery uses patterns to find events created for Microsoft Azure components. If there are events that indicate the change of state in one of the Microsoft Azure components, it triggers the discovery of Microsoft Azure components using the patterns.

    Table 55. Patterns used for event discovery
    Pattern CI Class
    Azure Application LB Event Cloud Load Balancer [cmdb_ci_cloud_load_balancer]
    Azure Availability Set Event Availability Set [cmdb_ci_availability_set]
    Azure Classic LB Event Cloud Load Balancer [cmdb_ci_cloud_load_balancer]
    Azure DataBase Event Cloud DataBase [cmdb_ci_cloud_database]
    Azure Express Route Circuit Event Cloud Direct Connect [cmdb_ci_cloud_direct_connect]
    Azure Functions Event Cloud Function [cmdb_ci_cloud_function]
    Azure Local Network Gateway Event Virtual Private Gateway [cmdb_ci_virtual_pvt_gateway]
    Azure NAT Gateway Event NAT Gateway [cmdb_ci_nat_gateway]
    Azure Network Event Cloud Network [cmdb_ci_network]
    Azure NIC Event Cloud Mgmt Network Interface [cmdb_ci_nic]
    Azure Private DNS Zone Event DNS Zone [cmdb_ci_dns_zone]
    Azure Public IP Event Cloud Public IP Address [cmdb_ci_cloud_public_ipaddress]
    Azure Resource Group Event Resource Group [cmdb_ci_resource_group]
    Azure Security Group Event Compute Security Group [cmdb_ci_compute_security_group]
    Azure Storage Account Event Cloud Storage Account [cmdb_ci_cloud_storage_account]
    Azure Virtual Machine Event Virtual Machine Instance [cmdb_ci_vm_instance]
    Azure Virtual Network Gateway Connection Event Virtual Network Gateway Connection [cmdb_ci_vpc_gateway_connection]
    Azure Virtual Network Peerings Event Virtual Network Peering [cmdb_ci_vnet_peering]
    Azure VM Scale Set Event Instance Scale Set [cmdb_ci_instance_scale_set]

    Tag information collected by Discovery during horizontal discovery

    When running the patterns, tag information is collected to populate the cmdb_key_value table.​ Each tag is related to a CI that was discovered during the discovery.​ Tag discovery is done in the extension section of each pattern.

    Data collected by Service Mapping during tag-based discovery

    Service Mapping uses tag-based discovery to create service instance maps including the Cloud components. The Service Mapping application comes with the following preconfigured CI relationships used for tag-based discovery. These CI relationships are available from the 1.0.68 release on the ServiceNow Store.
    CI Relationship CI
    Configuration Item [cmdb_ci] Hosted on::Hosts Logical Datacenter [cmdb_ci_logical_datacenter]
    Logical Datacenter [cmdb_ci_logical_datacenter] Hosted on::Hosts Cloud Service Account [cmdb_ci_cloud_service_account]