OBLYTECH Logo
OBLYTECH Logo

Scheduling Discovery Runs and Windows

A Discovery schedule in ServiceNow combines a resource scope, a MID Server choice, and a run trigger. Configure these together: decide what to discover, verify the MID Server can reach it, then choose a scheduled time, an on-demand run, or a sequence after another schedule. Add a runtime threshold when needed.

Build a Discovery schedule in ServiceNow around its scope

Start with the inventory question the run must answer. A cloud account scan and deeper discovery of its virtual machines have different setup decisions. Listing a cloud resource does not make the optional server discovery configuration unnecessary. Decide whether you need cloud inventory, server attributes, or both before assigning a recurring window.

For cloud schedule creation in Discovery Admin Workspace, the required role is discovery_admin. Go to Workspaces > Discovery Admin Workspace > Schedules, select New Discovery, choose Cloud-based discovery, and select Continue. Give the schedule a descriptive name and choose the provider. A name that identifies account, scope, and purpose makes later scheduling reviews easier.

Check your instance and release before following this workflow. The Brazil setup requires Discovery Admin Workspace v1.11.0 or later for AWS, Azure, and GCP, and v1.13.0 or later for VMware and IBM. Cloud Discovery Workspace is deprecated, so distinguish that older interface from Discovery Admin Workspace when comparing existing runbooks.

For a first deployment, define a limited scope and a result you can inspect. For example, an initial run could cover one selected region rather than a management account’s full estate. That is a planning choice, not a prescribed resource limit. Use the ServiceNow Discovery overview if the team needs to agree on what discovery should establish.

Choose the MID Server before choosing the window

Cloud schedule setup requires at least one validated MID Server with status Up. The MID Server needs reachability to the intended IP ranges and the Cloud Management capability. Appropriate cloud permissions and credentials are separate prerequisites. A healthy MID Server does not establish that an account has permission to discover the intended resources.

The workspace offers three MID Server selection approaches. Choose deliberately because this determines which execution resources the schedule can use:

  • Search for a MID server lets you select a specific server. The displayed candidates are validated, up, and have the Cloud Management capability.
  • Automatically select a MID server selects an available server when the schedule runs. The AWS and GCP workflows describe automatic selection of an available MID Server with an IAM role.
  • Use a cluster of MID servers supports a cluster arrangement for failover protection and load balancing.

For an initial run, consider selecting a known server so that connectivity and execution ownership are easier to inspect. If using a cluster, review whether its members can reach the selected scope. Plan capacity around the resources that could actually perform the work, rather than assuming the schedule name binds it to one machine.

Record the MID Server selection approach, the network path it needs, the credential owner, and any other schedules that use the same execution resources. The person choosing the run window needs that context to avoid placing unrelated discovery work on the same machines.

Resolve accounts and regions before setting recurrence

Select an existing cloud account or configure a new one in the provider workflow. Existing account details populate the relevant fields. If access policies or permissions have changed, use Verify information to check the account again. Treat successful verification as a setup check; also inspect the inventory produced by the first execution.

Management accounts add a scope decision. AWS can include all member accounts or selected member accounts. Azure offers all subscriptions or selected subscriptions, while GCP offers all projects or selected projects. These choices appear for the corresponding management account. Decide whether broad coverage matches the approved discovery scope before advancing.

AWS, Azure, and GCP schedules then allow all linked cloud regions or selected regions. VMware and IBM use datacenter selection. If the expected scope is absent, use the relevant Refresh cloud regions or Refresh datacenters control. Record the intended selection so a later reviewer can distinguish an omitted region from an execution failure.

This sequence matters when estimating a window. A run spanning additional accounts and regions represents a different workload from the pilot. As an operating practice, review scope changes alongside timing changes. A previously acceptable start time does not establish that a newly expanded scan will fit the same period.

Configure the optional server discovery separately

The cloud workflows offer Create a server discovery schedule to complement cloud discovery with an IP-based schedule. When enabling it, select a MID Server or cluster that can discover the virtual machines and their attributes. Review this choice separately from the MID Server selected for the cloud account workflow.

AWS adds a Discovery method choice. Discover servers with credentials uses operating system credentials for deeper EC2 discovery. Discover servers with AWS Systems Manager (SSM) uses the SSM Agent, and requires the glide.discovery.enable_ssm property to be enabled. Establish which method the environment supports before treating server discovery as ready.

Keep credential handling part of the execution plan. The server discovery method may introduce access requirements beyond those used to enumerate cloud resources. If a credential vault is involved, review external credential storage alongside the schedule design.

For help planning this work, see ServiceNow implementation.

Set run order and the runtime boundary

The scheduling step offers three ways to trigger discovery. Run at a scheduled time uses the configured date and time. Run on demand waits for a manual trigger. Run after series starts after another existing Discovery schedule completes, and selecting that schedule displays the relationship map of associated schedules.

Choose a calendar trigger when a defined start suits operations. Choose on-demand execution for a supervised trial or an occasional scan. Use a series when completion order matters. As a planning example, two workloads sharing constrained execution resources could be sequenced rather than assigned simultaneous starts. The sequence controls ordering; it does not establish how long either workload will take.

Set discovery time out enables a runtime threshold. If execution exceeds that threshold, the schedule is canceled. Treat it as a cancellation boundary when planning a discovery window. Do not interpret the configured start time as the time by which discovery will finish, or assume that cancellation demonstrates complete inventory coverage.

Estimate the window from observed runs of a comparable scope on the same execution path. If a dependent task waits on the results, add time to review failures. Recheck the estimate after any change to account scope, server discovery, or MID Server selection.

Validate execution before relying on recurrence

Finish validates the supplied information, creates the schedule, and opens its entry in Discovery Schedules [discovery_schedule]. From there, the schedule can be edited or started with Discover Now. Finish and run validates the information, creates the schedule and a Discovery status, starts execution, and opens Status Details.

For the first supervised execution, compare the selected account and region scope with the inventory you expected. Check whether cloud resources and the requested server attributes are both represented. Investigate missing coverage before reducing the interval or extending the runtime threshold. Use the Discovery troubleshooting guide when the run does not produce the expected result.

Keep a short acceptance record: intended scope, selected execution path, observed duration, gaps found, and the next review owner. This gives later administrators a reason for the recurrence and timeout values instead of leaving them to infer intent from the schedule alone.

Questions about specialized discovery schedules

Can Amazon ECS run without full AWS pattern discovery?

Yes. A standalone serverless schedule can use the Amazon AWS – ECS pattern to discover ECS and ECR resources. Creating that schedule requires discovery_admin. Set Discover to Serverless, choose the MID server, and configure its execution pattern and launcher parameters.

Have the AWS service account ID and AWS credentials ready for this setup. In the schedule record, add an entry under Serverless Execution Patterns and select the ECS pattern. Set Proxy Host to Global. The launcher parameters identify the target and its credentials: cloud_account_id takes the AWS cloud service account ID, cloud_cred_id takes the credential record’s sys_id, and cloud_datacenter_type takes cmdb_ci_aws_datacenter. Enable the schedule and its execution pattern using their Active fields. You can then start discovery immediately or let the configured schedule trigger it.

Does event-driven discovery require a full scheduled scan for each change?

Azure and GCP workflows offer Enable event-driven discovery. With the corresponding event setup, affected resources can update the CMDB without a full discovery run. Include event configuration in the operating plan before relying on those updates.

What must exist before AWS role assumption can verify?

The target account needs an IAM role with the permissions and policies for Cloud Discovery. That role must trust the MID Server’s account. Select Assume an IAM role, then confirm the role and trust relationship with the cloud administrator before entering the access role name and account.

Which identifier belongs in a VMware cloud account?

The VMware account configuration uses the vCenter Server’s instance UUID together with the account name and connection address. Record that identifier during setup so the schedule points at the intended vCenter environment.