Azure Database pattern-based discovery

reference australia Updated Jun 18, 2026 5 min read azure-database-pattern.md
Raw file servicenow.com

Discovery and Service Mapping Patterns finds Azure databases, including SQL Server, MySQL, PostgreSQL, Redis, and Azure Cosmos DB, in your cloud environment. Discovering some of these resources might require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store.

Pattern-based discovery and mapping requirements

  • Verify the Microsoft Azure discovery prerequisites

    For more information, see the prerequisites section in Microsoft Azure Cloud discovery using patterns.

  • Configure the Discovery schedule to support GovCloud

    Discovering Azure GovCloud (US) accounts requires using a datacenter URL when setting up an Azure service account. For more information, see Set up Azure service accounts.

  • Verify requirements for Azure SQL Managed Instance license discovery

    Required plugins and applications:

    • Software Asset Management Professional for Microsoft
    • Visibility Content

Data collected by Discovery during horizontal discovery

Discovery populates the data in the CMDB when running the Azure DataBase (LP) pattern.

Field Description
Name [name] The name of the database that you created in Azure.
Object ID [object_id] The identification name of the database.
Fully qualified domain name [fqdn] The FQDN that Azure assigned to your database.
Type [type] The type of database you created.
Version [version] The version of the database.
State [state] The state of the database: whether it's Available or Terminated.
Vendor [vendor] The vendor name is Azure.
Operational status [operational_status] The operational status of the database, derived from its Azure provisioning state.
Install Status [install_status] Install status of the resource. Default value is Installed.
Category [category]* The stock keeping unit (SKU) family.

* Populated only by the Azure SQL Managed Instance license pattern extension.

Field Description
Netmask [netmask] Netmask of the Azure database.

Field

Description

Name [name]

Name of the database in the following format: <database name>@<server name>.

Type [type]

Database engine type. Possible values: - Microsoft SQL Server

  • MySQL
  • Postgres SQL
  • Redis
  • DocumentDB

Serial number [serial_number]

Unique identifier of the database.

Life Cycle Stage [life_cycle_stage]

Life cycle stage of the database, derived from its Azure status. For example: Operational or End of Life.

Life Cycle Stage Status [life_cycle_stage_status]

Life cycle stage status of the database, derived from its Azure status. For example: In Use or Retired.

Field

Description

Name [name]

Name of the hardware type, based on the database SKU.

Object ID [object_id]

Unique identifier for the hardware type, based on the database SKU name.

vCPUs [vcpus]

Number of virtual CPUs, extracted from the SKU name.

Provider [provider]

Cloud provider of the hardware type. The value is set to AZURE.This field is only populated in the Cloud Hardware Type [cmdb_ci_cloud_hardware_type] table.

**Note:** When using the Hardware Type \[cmdb\_ci\_compute\_template\] table to store the hardware types, you may notice an unusually large number of records. To avoid this issue, you can store the discovered hardware types in the Cloud Hardware Type \[cmdb\_ci\_cloud\_hardware\_type\] table. For more information, see [Enable the Cloud Hardware Type class extension](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery-and-service-mapping-patterns/enable-hardware-type-class-extension.md).

Discovery populates the data in the CMDB when running the Azure SQL Managed Instance license pattern extension.

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.

CI relationships and references

The Azure DataBase (LP) pattern creates the following relationships and references to support Azure database discovery. References link to records in other tables and don't appear in the CI Relationship [cmdb_rel_ci] table.

CI Relationship CI
Cloud DataBase [cmdb_ci_cloud_database] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
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]
Resource Group [cmdb_ci_resource_group] Contains::Contained by Cloud DataBase [cmdb_ci_cloud_database]
Hardware Type [cmdb_ci_compute_template] or Cloud Hardware Type [cmdb_ci_cloud_hardware_type] Hosted on::Hosts Azure Datacenter [cmdb_ci_azure_datacenter]
Database [cmdb_ci_database] Provisioned From::Provisioned Hardware Type [cmdb_ci_compute_template] or Cloud Hardware Type [cmdb_ci_cloud_hardware_type]
CI Field Referenced CI
Key Value [cmdb_key_value] Configuration item [configuration_item] Cloud DataBase [cmdb_ci_cloud_database]
Key Value [cmdb_key_value] Configuration item [configuration_item] Database [cmdb_ci_database]

The Azure SQL Managed Instance license pattern extension creates the following 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]
CI Field Referenced CI
Key Value [cmdb_key_value] Configuration item [configuration_item] Cloud DataBase [cmdb_ci_cloud_database]

Azure Tag discovery

The Collect Azure DataBase Tags (LP) pattern extension collects tags from database servers and databases, and populates them in the Key Value [cmdb_key_value] table.

Field Description
Key [key] Tag name.
Value [value] Tag value.
Configuration item [configuration_item] References the Cloud DataBase [cmdb_ci_cloud_database] table (for server-level tags) or the Database [cmdb_ci_database] table (for database-level tags).

Azure SQL Managed Instance license discovery

The Azure SQL Managed Instance license pattern extension populates the license type in the Key Value [cmdb_key_value] table.

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.

## Connections found by Service Mapping during top-down discovery

The Azure DataBase TD pattern discovers the following connections during top-down discovery: SQL Server, MySQL, PostgreSQL, Redis, and Cosmos DB (DocumentDB).

Parent Topic:Microsoft Azure Cloud discovery using patterns

Keywords Azure DatabaseAzure discoveryAzure SQLAzure patternsDatabase pattern
Search documentation
Search document titles and file paths on the australia branch