OBLYTECH Logo
OBLYTECH Logo

Automate Cloud Governance in ServiceNow: Quotas and Policies

To automate cloud governance in ServiceNow, combine group and user quotas with policies that control requests, approvals, and resource lifecycle actions. Map quotas to the catalog items they govern, publish the relevant policies, and test allowed, blocked, and approval routes before opening self-service provisioning. Include ownership, location, and lease-end behavior in the same design.

Start from the risk each control has to cover

Consider four risks when designing a self-service cloud catalog: consumption beyond an agreed limit, an unsuitable resource size, an unsupported location, and resources running after their owners no longer need them. Map each requirement to a control and an accountable owner. A rule without a clear purpose becomes difficult to maintain.

Quotas limit resource consumption for users and groups. Policies govern approvals, operations, and catalog settings. Resource pools filter the values available on request forms, while permissions govern group access to application features and records. These controls work together; a consumption ceiling does not by itself settle which resource sizes a requester should select.

Identify where cloud provisioning automation earns its keep before automating decisions that still lack an owner. The cloud provisioning and governance section covers the wider operating model. The configuration details here use Australia behavior; check differences on your instance and release before applying them.

Configure quotas around the resource and its measurement

Creating a cloud quota definition requires sn_cmp.cloud_governor. In the Cloud Admin Portal, open Govern > Quota and select New. Decide what the limit measures before entering values: a virtual machine count, a storage size, or another supported resource attribute. A clear measurement prevents a limit from looking correct while restricting the wrong thing.

  1. Enter a Quota Definition identifier and choose the Quota Type. The definition form provides Count and Size choices.
  2. Select Resource Name, Calculation Unit, and CI Class. Specify the underlying CI column in Attribute. For example, cpus identifies CPU data on cmdb_ci_vm_instance.
  3. If using a template, set Template and Template Attribute to the corresponding table and column. A compute template’s vcpus column is distinct from the instance’s cpus column.
  4. Save the definition, then use Quota Configurations to set Group Maximum Limit and Per User Limit for the relevant group.
  5. Set default quotas where required, then map the definition to its catalog item through Cloud Template Resources.

The final mapping is essential: a quota that is not mapped to a catalog item is not calculated for that item. Record the intended Domain, Quota Definition, and Catalog Item together so testing can trace a request back to its governing definition.

Keep group limits separate from individual limits

A group’s shared ceiling and a member’s personal ceiling address different risks. Test both. A team can consume its allocation even when each individual remains within a personal limit. When a user belongs to multiple groups, quota limits from those groups are combined, so review actual memberships rather than assuming a single department determines the result.

Quota calculation depends on resource blocks being bound to CMDB CI classes. A custom resource block without that mapping does not receive quota calculation. Maintain CMDB data through event-driven discovery for precise enforcement, and investigate stale resource records before increasing limits to resolve an unexplained rejection.

Base definitions include VM_Count, vCPUs Count, StorageVolume_Size, Stack_Count, and Network_Count. Stack_Count applies to template-based cloud resources. Choose the definition that measures the intended resource rather than using stack count as a substitute for the size of everything inside a stack.

Activate resource order controls and test the exception route

Setting up resource order controls requires sn_cmp.cloud_governor, cloud policy groups, and template-based cloud catalog items. Configure and map the quota first. Then open Govern > Policies and inspect Resource Order Control. The base policy starts in Draft, so its presence does not mean enforcement is active.

In Rules, inspect approveresourcelimit. Its base configuration uses a ServiceNow approval action. Modify the relevant rule and action, or create a custom rule and action, to trigger a custom approval subflow, a notification, or both. Check Policy Group, select Update, and then Publish to activate the controls.

When a quota is exceeded, the requester may receive an error that prevents provisioning or enter the configured policy route. With an approval route, the request follows its predefined subflow; approval allows stack deployment. Verify the exact requester message, the designated approver, and the rejected outcome. Include the first request after configuration and a request where no approver can act.

For help planning this work, see ServiceNow implementation.

Resolve policy precedence before adding more approvals

A blueprint provision approval policy takes precedence over a Resource Order Control approval policy when both are configured. Do not assume that enabling both creates two sequential approval gates. Submit a request that matches both and confirm which policy handles it.

Approval policy evaluation also stops early: the first successful approval policy applies, followed by its first successful rule and that rule’s first successful action. If the applied policy includes a custom approval and a ServiceNow approval, the custom process takes precedence. Design the complete review path deliberately instead of scattering required sign-offs across competing actions.

For other policy types, Order of Execution controls sequence; lower numbers run earlier, and equal numbers do not guarantee an order. Creating these cloud policies requires sn_cmp.cloud_governor or admin. Select a trigger that matches the event and narrow the operation or catalog target where appropriate. Published policies are enforced and cannot be edited until moved to Draft. Draft policies can be edited but are not enforced.

Plan lifecycle notices, locations, and form choices together

Governance continues after provisioning. An on Lease end policy can send a notification or perform Start, Stop, or Deprovision operations. Give notices an owner, define the intended action, and test resources whose ownership information is missing. Treat stopping and deprovisioning as separate decisions because the intended resource outcome differs.

Where a catalog item includes a location field, decide which locations the business supports. Test whether the field is required and whether its selected value produces the intended datacenter or region. Keep location choice and consumption limits as distinct acceptance checks.

Resource pools use queries or scripts to filter tables and restrict the values available to requesters. For cost center choices, inspect the returned records for the actual requesting user, including user associations and any required plugins. A populated field is not evidence that its choices are appropriate. The existing catalog order form visibility guide covers how requesters encounter those fields.

For the cost center blueprint example, the setup assumes sn_cmp_cloud_admin, an active Cost Management plugin, defined cost centers, and users associated with them. Under Manage > Resource Pools, CostCenterPool contains two different filters: All returns the cost center table choices, while UserCostCenter looks up the ordering user’s cost center. Inspect the CostCenter variable’s Pool and Pool Filter on Type Specifications. Test with a user whose association is known, then compare the available choices with the intended charging rule. This isolates a filter mismatch from missing user data.

Prove enforcement before opening the catalog

As a planning sequence, agree on resource types, sizes, locations, consumption limits, approvals, and lifecycle responsibilities. Configure the dependencies, then test with a non-administrator requester. Use cloud provisioning and governance best practices to connect these checks to catalog readiness.

  • Submit an allowed request and confirm the resulting resource and measured consumption.
  • Cross a personal limit and a group limit separately, recording the result of each.
  • Trigger the approval route and test approval, rejection, and an unavailable approver.
  • Check overlapping policies, missing catalog mappings, and a custom resource block’s CI binding.
  • Verify location selection and delivery of the configured lifecycle notice.

Keep the request identifier, expected result, actual result, and responsible owner with each test. If enforcement fails, inspect mapping, data freshness, policy state, and precedence before changing the threshold. Publishing the catalog without rejection-path evidence leaves the first requester to discover the gap.

Questions that arise when maintaining cloud governance

Can related policies be managed as a set?

Yes. A cloud policy group holds related policies. Group controls that are reviewed together, and record their combined purpose so a later change does not overlook a dependency.

Can policy configuration be moved or backed up?

Cloud policies can be exported and imported as update sets, including their rules, conditions, actions, scripts, and script categories. Plan a destination test before relying on the moved configuration.

Can policies add resource tags?

Policy action scripts can add or modify resource tags used for billing and reporting. Define the intended tag values and verify the resulting resource rather than checking script completion alone.

Can a policy reserve an IP address?

Cloud policies support IP address reservation actions. Treat address management as a separate integration check: confirm the target provider, operation timing, and resulting allocation before enabling it for requesters.