OBLYTECH Logo
OBLYTECH Logo

DevOps Config in ServiceNow: Setup, Roles and Exporters

DevOps Config is a ServiceNow application that stores configuration data for enterprise applications, validates it against policies before deployment, and exports snapshots to pipeline tools. A DevOps engineer installs it, developers and app engineers commit changes through it, and five roles control access. Starting with the Washington D.C. release, it is being prepared for future deprecation.

What DevOps Config does with configuration data

DevOps Config holds the authoritative copy of configuration data in one consolidated model, applies role-based access control, and checks the data as it is written. Validation happens before deployment rather than during it, so a pipeline can stop a release when a change is judged risky or non-compliant. Developers keep their usual routine and read the outcome.

The application sits alongside DevOps Change Velocity, which tracks activity across the deployment lifecycle. The two products share an application model, so the same change can appear in both. The plain-language overview of ServiceNow DevOps explains how the pieces relate. Installing the application also installs two platform capabilities: Configuration Data Management (CDM) for the data model and Policy as Code Engine (PaCE) for policies.

Installing the application and its content packs

Check the release notice before installing. From the Washington D.C. release onward, DevOps Config is being prepared for future deprecation. It will be hidden and no longer activated on new instances, though it will continue to be supported.

Install it from the ServiceNow Store as a user with the admin role. Go to System Applications, then All Available Applications, then All, open the Not Installed tab, and select Install beside DevOps Config.

Component What it adds Install order
DevOps Config application Apps, the workspace and validation First
Policy content pack Default policies for validating configuration data After the application
Exporter content pack Default exporters for passing data to deployment tools After the application
Pipeline plugins Integration with Azure DevOps, Jenkins and Argo CD As the pipeline needs

The nine configuration steps

  1. Install the application, the content packs and any pipeline plugins.
  2. Create an application to hold the configuration entity and link it to other ServiceNow products.
  3. Create a deployable for each environment, typically development, test and production.
  4. Upload configuration data from each source tool with an import script.
  5. Define the policies to run, using the defaults or your own.
  6. Map those policies to the deployable.
  7. Define the exporters that pass validated data to the pipeline.
  8. Configure the pipeline with the Azure DevOps tasks or Jenkins actions. The Azure DevOps side is covered in the Azure DevOps integration guide.
  9. Run validation and review the results.

Creating an application in the DevOps Config workspace

Navigate to All, then DevOps Config, then DevOps Config Workspace, and select the apps icon to open the Apps tab. Creating an application requires the sn_devops_config.admin role. New creates an application and its application model together, or the application can attach to an existing model or service. The model’s name, owner and manufacturer link the application to the other DevOps products, and each model has a matching SDLC Component in the CMDB.

The Overview tab asks for the application details, the user groups that maintain the application, a description, the model owner and the manufacturer. Applications sync with DevOps Change Velocity in both directions when that product is installed. Deleting an application sets it to Inactive in DevOps Config, and deleting it from DevOps Change Velocity also removes it from DevOps Config. A new application holds no configuration data until an import produces snapshots.

Roles that control access

Role What it allows Roles it includes
sn_devops.app_admin Create, read, update and delete apps None
sn_devops_config.viewer Read-only access sn_cdm.cdm_viewer
sn_devops_config.editor Manage config data, commit changesets, publish and unpublish snapshots sn_devops_config.viewer, sn_cdm.cdm_editor
sn_devops_config.secrets Manage encrypted config data within an application sn_cdm.cdm_secrets
sn_devops_config.admin Editor permissions, plus policies, exporters and applications sn_devops.app_admin, sn_devops_config.editor, sn_cdm.cdm_admin

Encrypted values appear masked by default. Users need the sn_cdm.cdm_secrets role to view, create, update or delete them, and exporting a snapshot that contains encrypted values needs the same role. Domain separation is not supported for DevOps Config, so access is managed through roles and group membership. For the wider access model across DevOps work, see ServiceNow DevOps: Security and Access Design.

Resolving changeset conflicts

Teams editing the same configuration can collide. Each commit is checked against earlier commits. On a conflict you can keep some changes or discard the conflicted ones and start a new changeset, so copy larger edits into a text editor before closing a conflicted changeset. Keeping changesets open briefly, closing one when you need to research, and agreeing with coworkers on who is editing which item together reduce the number of conflicts. For other failure patterns in DevOps setups, see Troubleshooting ServiceNow DevOps: A Practical Guide.

Conflict type What happened in another changeset
Stale data The value was changed, or the item was removed from a collection or deployable
Changed parent The parent was deleted or renamed, leaving your item orphaned
Changed references Your item was included in a collection or deployable, which blocks deletion
Duplicate An item with the same name already exists

Policies and policy mapping

Policies run through PaCE. The default policies fall into Generic, Kubernetes and Red Hat OpenShift categories, and the Generic policies can be customised. A static mapping attaches a policy directly to one deployable, so it has to be repeated for each deployable it covers. A dynamic mapping attaches a policy by pre-defined conditions, so one mapping can reach many deployables across applications that meet the same conditions. Dynamic validation runs at run time. The Policies tab on the Application form, through View mapped policies, lists the mappings of both kinds.

Exporters and export limits

Define an exporter from the Admin view’s Exporters tab. Choose a default exporter or select New, enter a name and description, and confirm. This needs the sn_devops_config.admin role. Default exporters cannot be modified, but a copy can be customised. The returnAllData-now exporter returns the full snapshot, including the var system folder, while returnAllData_noVars-now leaves out the deployable name and vars folders. Each default exporter takes the application name and the deployable name, plus a requested format. Most accept JSON, YAML, XML, INI or raw, but the unique key name exporter accepts only JSON, YAML or raw.

Test an exporter before relying on it, because exporters must be published before they run. For a database change, for example, select a node-based exporter, name the database deployable as the node, and enter the updated settings as arguments. Export is limited to snapshots of no more than 10,000 configuration data items (CDIs) per deployable or 100,000 CDIs per application. Records of exporter executions are deleted after three years, and that period can be changed.

Insights dashboard and snapshot comparison

The Insights dashboard, built with Performance Analytics, shows open changesets, failed snapshots and policy exceptions. You can filter it by application, deployable and date. The open changesets and failed snapshots figures should generally sit at zero. For a policy exception, the recommended action is to withdraw it if it is no longer needed, to fix the issue when time remains before the exception expires, or to extend the exception when there is not enough time.

To compare two snapshots, open a snapshot of a deployable, select the Config data changes tab, and choose an older reference snapshot. The deployable needs at least two snapshots, and the target cannot be its first snapshot. Encrypted values stay masked in the comparison unless the user holds the cdm_secrets role.

APIs and reference material

DevOps Config exposes its own application API and a set of CDM APIs:

  • DevOps Config API: manages the application lifecycle with delete, get, patch and post operations.
  • CdmApplicationsApi: uploads configuration data and exports deployable data.
  • CdmChangesetsApi: creates, deploys, retrieves and deletes changesets.
  • CdmEditorApi: creates, updates, deletes and retrieves nodes.
  • CdmPoliciesApi: manages policy mappings on deployables.
  • CdmSharedLibraryApi: manages shared libraries and shared components.
  • CdmSnapshotApi: publishes, unpublishes and revalidates snapshots.
  • CdmVersionApi: publishes, unpublishes and exports versions of shared components.

The CDM data model is a standardised structure for automation, quality validation and CSDM. It imports existing configuration data, validates it against policies and exports valid data to the existing pipeline. Teams that want outside help with this kind of pipeline can look at DevOps and automation services.

Frequently asked questions

Is DevOps Config being retired?

It is being prepared for future deprecation, starting with the Washington D.C. release. From that release onward it will be hidden and no longer activated on new instances, but it will continue to be supported.

Who can create an application?

Creating an application requires the sn_devops_config.admin role. The sn_devops.app_admin role also allows creating, reading, updating and deleting apps.

What happens during a changeset conflict?

You choose between keeping some of your changes and discarding the conflicted ones to start a new changeset. Copy larger changes into a text editor first, so the work can be rebuilt.

Who can see encrypted values?

Encrypted values appear masked by default. Users with the sn_cdm.cdm_secrets role can view, create, update and delete them, and the same role is needed to export a snapshot that contains them.

Can default exporters be edited?

No. Default exporters cannot be modified. You can copy one and customise the copy, then publish the copy before running it.