Azure Log Analytics Workspace pattern-based discovery
Summarize
Summary of Azure Log Analytics Workspace pattern-based discovery
The Azure Log Analytics Workspace pattern-based discovery in ServiceNow enables automated detection and mapping of Azure Log Analytics workspaces within your cloud environment. It leverages Discovery and Service Mapping Patterns to populate configuration data into both CMDB and non-CMDB tables, helping maintain an accurate and detailed inventory of Azure resources.
Show less
Key Features
- Pattern Activation: The Azure Log Analytics Workspace discovery pattern is disabled by default. From Visibility Content version 6.28.0 onwards, enabling or disabling patterns is simplified and does not interfere with updates. Patterns reset to the latest version after upgrades while preserving activation status.
- Azure GovCloud Support: Discovery supports Azure GovCloud (US) accounts by requiring datacenter URLs during Azure service account setup.
- Data Population: The pattern populates data into:
- Non-CMDB tables: Stores detailed Azure-specific attributes such as Object Id, Kind, Location, Resource Group, Subscription Id, Tenant Id, Provisioning State, and Customer Id in cmdbazureloganalyticsworkspace.
- CMDB tables: Stores general cloud resource information like Object ID, Name, Location, Install Status, Operational Status, and Resource Type in cmdbcicmpresource, with resource type set to microsoft.operationalinsights/workspaces.
- CI Relationships: The pattern automatically creates relationships between Azure Log Analytics Workspaces, resource groups, datacenters, and cloud resources to support comprehensive service mapping.
- Tag Discovery: Azure resource tags are collected and stored in the cmdbkeyvalue table, enabling enhanced filtering and classification.
Practical Considerations for ServiceNow Customers
- Verify Microsoft Azure discovery prerequisites before enabling the pattern to ensure discovery functions correctly.
- Enable the Azure Log Analytics Workspace pattern to start discovering these resources; note that enabling/disabling patterns now integrates seamlessly with upgrades.
- Configure the Discovery schedule appropriately, especially when working with Azure GovCloud, to use correct datacenter URLs.
- Utilize the populated CMDB and non-CMDB tables to gain visibility into your Azure Log Analytics Workspace deployments and their operational states.
- Leverage CI relationships and tag data to improve impact analysis, service mapping accuracy, and resource management.
Discovery and Service Mapping Patterns finds Azure services on your cloud environment. Discovering some of these resources may 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.
- Enable the relevant pattern
- The pattern for this service is disabled by default. Starting with Visibility Content version 6.28.0, activating or deactivating a pattern won't be considered a customization, and it will continue to receive updates. Patterns that were previously activated or deactivated will reset to the latest predefined version after upgrading while retaining the last active field value. For more information on enabling patterns, see Activate a disabled pattern.
- 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.
Discovery and Service Mapping Patterns application populates data in both CMDB and non-CMDB tables.
Data stored in non-CMDB tables
Discovery and Service Mapping Patterns application populates data in the non-CMDB table when running the Azure - Log Analytics Workspace - Extended Inventory(LP) pattern.
You can review the non-CMDB Azure tables by navigating to . You can also search the navigation filter for the specific pattern name.
| Field | Description |
|---|---|
| Object Id [object_id] | The unique identifier of the Azure resource. |
| Kind [kind] | The specific kind or variant of the resource. |
| DC Location [location] | The geographical region where the resource is deployed. |
| Resource Group [resource_group] | The Azure resource group to which the resource belongs. |
| Subscription Id [subscription_id] | The unique identifier of the Azure subscription containing the resource. |
| Tenant Id [tenant_id] | The identifier of the Azure Active Directory tenant associated with the resource. |
| Provisioning State [provisioning_state] | The current lifecycle state of the resource. For example: Succeeded, Creating, or Failed. |
| Configuration Item [configuration_item] | References the Cloud Resource [cmdb_ci_cmp_resource] table. |
| Customer Id [customer_id] | The unique identifier of the Log Analytics workspace or customer instance. |
Data stored in CMDB tables
Discovery and Service Mapping Patterns application populates data in the CMDB when running the Azure - Log Analytics Workspace - Extended Inventory(LP) pattern.
| Field | Description |
|---|---|
| Object ID [object_id] | The unique identifier of the Azure resource. |
| Name [name] | The name of the resource. |
| Location [location] | The geographical region where the resource is deployed. |
| 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. |
| Resource type [resource_type] | Type of resource. The value is set to microsoft.operationalinsights/workspaces. |
CI relationships
The Azure - Log Analytics Workspace - Extended Inventory(LP) pattern creates these relationships to support Azure Log Analytics Workspace discovery.
| CI | Relationship | CI |
|---|---|---|
| Resource Group [cmdb_ci_resource_group] | Contains::Contained by | Cloud Resource [cmdb_ci_cmp_resource] |
| Cloud Resource [cmdb_ci_cmp_resource] | Hosted on::Hosts | Azure Datacenter [cmdb_ci_azure_datacenter] |
| Azure Log Analytics - Workspace [cmdb_azure_log_analytics_workspace] | References | Cloud Resource [cmdb_ci_cmp_resource] |
Azure tag discovery
| Field | Description |
|---|---|
| Key [key] | Tag name. |
| Value [value] | Tag value. |