Azure sub account pattern-based discovery

reference australia Updated Jun 18, 2026 4 min read azure-sub-account-pattern.md
Raw file servicenow.com

Discovery and Service Mapping Patterns finds Azure subscriptions and management groups on 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.

Azure Management Groups data model

The Azure Management Groups pattern extension introduces the following CI class that extends an existing CMDB class.

CI class Extends from
Azure Management Group [cmdb_ci_azure_management_group] Configuration Item [cmdb_ci]

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.

Data collected by Discovery during horizontal discovery

Discovery populates the data in the CMDB when running the Azure - Sub Account (LP) pattern.

Field

Description

Name [name]

Name of the subscription or service account.

Object ID [object_id]

The subscription ID, allocated by Azure for this resource.

Account Id [account_id]

The subscription ID of the service account.

Datacenter Type [datacenter_type]

Type of datacenter associated with the service account. The value is set to cmdb_ci_azure_datacenter.

Datacenter URL [datacenter_url]

The URL of the datacenter associated with the service account.

Is management account [is_master_account]

Boolean attribute indicating whether this is the management account. The value is set to false for discovered sub-accounts.

Discovery credentials [discovery_credentials]

Reference field to the related Azure credentials.

Parent account [parent_account]

Reference to the primary account, if it exists.

Operational status [operational_status]

Operational status of the subscription, derived from its Azure state. For example: Operational or Non-Operational.

Life Cycle Stage [life_cycle_stage]

Life cycle stage of the subscription, derived from its Azure state. For example: Operational, End of Operation, or End of Life.

Life Cycle Stage Status [life_cycle_stage_status]

Life cycle stage status of the subscription, derived from its Azure state. For example: In Use, Action Required, On Hold, Billing Past Due, or Retired.

Install Status [install_status]

Install status of the resource. Default value is Installed.

Discovery populates the data in the CMDB when running the Azure Management Groups pattern extension.

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.

Install Status [install_status]

Install status of the resource. Default value is Installed.

Operational status [operational_status]

Operational status of the resource. Default value is Operational.

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 populated only when tenant-level credentials are used.

## CI relationships and references

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

CI Field Referenced CI
Key Value [cmdb_key_value] Configuration item [configuration_item] Cloud Service Account [cmdb_ci_cloud_service_account]

The Azure Management Groups pattern extension creates the following relationships and references to support Azure Sub Account discovery. References link to records in other tables and don't appear in the CI Relationship [cmdb_rel_ci] table.

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]
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.

Azure Tag discovery

The Azure - Sub Account (LP) pattern collects tags 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 Service Account [cmdb_ci_cloud_service_account] table.

Parent Topic:Microsoft Azure Cloud discovery using patterns

Keywords Azure Sub AccountAzure discoveryAzure Management GroupsAzure patternsSub Account pattern
Search documentation
Search document titles and file paths on the australia branch