OBLYTECH Logo
OBLYTECH Logo

Available Cloud Discovery Patterns in ServiceNow ITOM Visibility

Cloud discovery patterns are command sequences that ServiceNow ITOM Visibility uses to identify cloud resources and their relationships. Available patterns cover AWS, Microsoft Azure, Google Cloud Platform, Oracle Cloud Infrastructure, Alibaba Cloud and IBM Cloud Platform. Coverage depends on the installed pattern applications, provider permissions and the discovery schedule’s scope.

How a discovery pattern works

A pattern is a sequence of commands that detects the attributes of a configuration item (CI) and the connections leaving it. The Discovery and Service Mapping applications provide patterns, and you can copy and adjust a pattern when the defaults do not cover your environment.

Infrastructure patterns build inventory lists of devices for Discovery. Application patterns serve both products: Discovery produces an application inventory, and Service Mapping produces a service instance map.

During horizontal discovery, a pattern finds a main CI type together with its related CI types.

Which cloud providers have patterns in the Brazil release

The Brazil release includes patterns for AWS, Azure, GCP, IBM, OCI and Alibaba Cloud. OpenStack resource discovery is also available through REST API calls. Each provider section lists its own credential and service account steps, so follow the section for the provider you use.

  • Amazon Web Services: Datacenters, networks, compute, storage, load balancers, IAM and many managed services; IAM account with ReadOnlyAccess for one account, or a management account for an AWS Organization.
  • Microsoft Azure: Datacenters, subscriptions, networks, storage, virtual machines, databases and App Service; Azure service accounts, then a schedule in Discovery Admin Workspace.
  • Google Cloud Platform: Global and regional load balancers, disks, subnets, instance groups and firewalls; A dedicated MID Server, the Viewer role, Google API credentials and a GCP service account.
  • Oracle Cloud Infrastructure: Subscribed datacenters, compartments, networks, compute, storage and Autonomous Database; Cloud Access Interface, Oracle API credentials in RSA format and an OCI service account.
  • Alibaba Cloud: Availability zones, datacenters, hardware types, OS images, storage volumes and virtual machines; Alibaba Cloud credentials, a service account and a scheduled discovery.
  • IBM Cloud Platform: Components reached through SoftLayer API v3 and v3.1 and Bluemix API v2; Needs IBM credentials for an account that can access your IBM cloud..

Setting up AWS discovery patterns

Start with the account structure. A single account needs an IAM account with the ReadOnlyAccess policy. To discover several accounts, use an AWS Organization: the parent is the management account and the accounts beneath it are member accounts. Once you save the management account credentials and test the connection, discovery lists its members so you can choose which to include. It then obtains a temporary credential for each member through an AWS API, so separate keys per member are not needed.

Starting with Zurich Patch 2, you can also discover datacenters for new cloud accounts only, instead of refreshing the entire list.

Limiting discovery to datacenters with resources

From version 1.29.0, an Amazon AWS Datacenter Discovery pattern runs first and sorts each region into one of three states. An active datacenter holds resources tied to your service account. A passive datacenter holds none, and the schedule skips it. An empty state applies when the Resource Explorer API is unavailable or the account lacks permission to query it, and the patterns still run.

The Resource Explorer permissions set the depth of the check. The resource-explorer-2:Search permission gives partial coverage; adding iam:CreateServiceLinkedRole gives full coverage. These apply from version 1.35.2. Versions 1.29.0 through 1.32.0 used the AWS Config service for the same purpose.

The MID Server property mid.cloud.discovery.sonar.discover_all_aws_datacenters defaults to true, which discovers all datacenters. Set it to false to limit discovery to datacenters with resources. With false, a new schedule covers all datacenters except passive ones, while the Refresh Datacenters flow still lists all regions. To change it, open All, then MID Server, then Properties, search for the property, set the value to false and choose Update. The role required is discovery_admin.

Excluding default resources from the check

Default resource types such as virtual private clouds and security groups exist in all regions, which can make an idle region look active. From version 1.35.2, list them in the system property sn_itom_pattern.discovery.aws.ldc.excluded_resource_types as a comma-separated list. The default is empty, which counts all supported types. An example entry is ec2:vpc,ec2:security-group.

Which AWS resources the patterns collect

  • VPC: Cloud Network (cmdb_ci_network); AWS Network Events.
  • Subnet: Cloud Subnet (cmdb_ci_cloud_subnet); AWS Subnet Events.
  • Security group: Compute Security Group (cmdb_ci_compute_security_group); AWS Security Group Events.
  • EC2 instance: Virtual Machine Instance (cmdb_ci_vm_instance); AWS Virtual Server Events.
  • EBS volume: Storage Volume (cmdb_ci_storage_volume); AWS Elastic Block Storage.
  • Application or Network load balancer: Cloud Load Balancer (cmdb_ci_cloud_load_balancer); AWS Application and Network LBs Events.

Application Load Balancer targets need one more step: set the sn_itom_pattern.discover_aws_app_pool_members MID Server property to true, which the discovery_admin role can change.

Tag-based discovery uses the preconfigured Service Mapping relationships, before discovered components can join service instances.

Setting up Microsoft Azure discovery patterns

Confirm that Discovery and Service Mapping Patterns, CMDB CI Class Models and Visibility Content are current. Then activate the cloud-related CI relationships, set up Azure service accounts and create a schedule in Discovery Admin Workspace.

Preparing Google Cloud Platform, OCI and Alibaba Cloud

Google Cloud Platform

The Google Cloud patterns need Discovery and Service Mapping Patterns 1.8.0, CMDB CI Class Models 1.49.0 and Visibility Content 6.13.0 at minimum. Use a dedicated MID Server with internet access. Give the Google Cloud member the Viewer role, configure the Google API credentials and create a GCP service account. Configure Cloud Logging event collection to support automatic CMDB updates. To discover BigQuery and Bigtable, set sn_itom_pattern.google_dbservice_table_collection to True.

Oracle Cloud Infrastructure

OCI discovery needs the Cloud Access Interface at version 1.0.0 or later. Convert the private and public keys to RSA format before creating the Oracle API credentials and the OCI service account. In Discovery Schedules, select Cloud Discovery and choose OCI as the provider, filter the logical datacenters you want on the Select Datacenters page, then choose Finish and Run. The active datacenter pattern finds the regions your tenancy subscribes to, while the datacenter pattern finds all regions OCI makes available.

Alibaba Cloud

Create Alibaba Cloud credentials and a service account, then schedule the discovery in Discovery Admin Workspace. From version 1.30.2 you can populate the Service Account and Logical Datacenter fields directly on cloud CIs to improve query performance.

Keeping patterns current and assigning roles

You install the Visibility Content application (sn_pattern_design) as a separate step.

Some discovered resources need the latest version of the Discovery and Service Mapping Patterns application from the Store.

  • Discovery admin: Required role for changing the AWS datacenter discovery property.
  • PD admin: View, create, edit and publish patterns.
  • PDE viewer: View command validation tasks, results and the command list without editing them.

Maintaining coverage after the first run

Record the installed versions of Discovery and Service Mapping Patterns, CMDB CI Class Models and Visibility Content before testing. Compare the expected resource classes with actual CIs from one account and region. A successful account connection is a starting point; check that the credentials can read the resource APIs used by the patterns you need.

Azure region filtering differs from AWS. The mid.cloud.discovery.sonar.discover_all_azure_datacenters MID Server property defaults to false. With patterns version 1.15.0 onward, this limits execution and the Azure Datacenters table to active datacenters. Management group discovery covers all Azure datacenters. Starting with version 1.29.0, Refresh Datacenters displays all regions without requiring a replacement schedule when a region becomes active.

For help planning this work, see ServiceNow implementation.

Questions about maintaining cloud discovery patterns

Will updating a pattern replace a customized copy?

An update changes the original preconfigured pattern, while the customized copy remains separate. Review the updated original against your local changes before deciding which version to use. Test the selected version in development before moving it to production.

Can a pattern behave differently across domains?

Yes. Preconfigured patterns belong to the global domain, but a customized copy can belong to a specific domain. That copy serves its assigned domain while the global original continues to serve other domains. Check domain assignment when two accounts produce different results.

Can an operator run an existing schedule without editing patterns?

The Discovery operator role can run or cancel existing schedules and view discovery data. It does not permit creating, editing or deleting records. Keep schedule operation separate from pattern editing when assigning access to the people monitoring cloud inventory.

Can non-English command output cause a discovery failure?

Pattern operations do not support multilingual returned values. Non-English output can prevent parsing and cause pattern discovery to fail. Check the actual returned data when an operation reaches its target but cannot interpret the response.