Import Set Staging
Automation App can copy the inventory it imports from Azure Automation to standard ServiceNow import set tables. You can then use the data in your own integrations, for example an IntegrationHub ETL integration that populates the CMDB.
Automation App does not ship any transform maps, ETL definitions or CMDB mappings. You decide what to do with the data and when.
Enable staging
Staging is disabled by default and enabled per Automation Account.
- In Automation Workspace, open Setup and select the Automation Accounts tab.
- Click Settings next to the Automation Account.
- Enable Stage imported data for customer transforms and click Save settings.
Saving the setting does not import anything. The next time the Automation Account is imported, a snapshot of the imported data is written to the staging tables.
Data sources and tables
Each resource type has its own Data Source, named Azure Automation - <resource>, and import set table.
| Data Source | Import set table |
|---|---|
| Azure Automation - Accounts | x_autps_azure_auto_stage_account |
| Azure Automation - Runbooks | x_autps_azure_auto_stage_runbook |
| Azure Automation - Jobs | x_autps_azure_auto_stage_job |
| Azure Automation - Credentials | x_autps_azure_auto_stage_credential |
| Azure Automation - Certificates | x_autps_azure_auto_stage_certificate |
| Azure Automation - Variables | x_autps_azure_auto_stage_variable |
| Azure Automation - Hybrid Worker Groups | x_autps_azure_auto_stage_worker_group |
| Azure Automation - Modules | x_autps_azure_auto_stage_module |
| Azure Automation - Activities | x_autps_azure_auto_stage_activity |
| Azure Automation - Runtime Environments | x_autps_azure_auto_stage_environment |
| Azure Automation - Runtime Packages | x_autps_azure_auto_stage_package |
Only the resources selected under Discovery in the Automation Account settings are staged. Runbooks, runtime environments and runtime packages are always staged.
Every row contains:
azure_id: the resource’s ID in Azure. Use this to identify the resource.source_sys_id: the record in Automation App the row was copied from.automation_account,account_nameandaccount_azure_id: the Automation Account the resource belongs to.- The subscription, location, timestamps and the resource’s own metadata.
What is never staged
To protect sensitive data, the following is never copied to the staging tables:
- Values of variables.
- Passwords of credentials (the username is included).
- Private keys and certificate files (thumbprint and expiry are included).
- Runbook code and drafts.
- Job input, output and exceptions.
- Connection secrets and tokens.
Build your integration
- Create an IntegrationHub ETL integration that uses the matching Azure Automation - … Data Source.
- Configure your own field mappings, CI classes, relationships and identification and reconciliation rules.
- Decide when to run the integration.
When the Data Source is loaded, it reads the data already in ServiceNow from all Automation Accounts with staging enabled. It does not contact Azure.
Notice: Each import creates a new snapshot. The same resource can appear in several batches. Do not treat a resource missing from a batch as deleted. Batches still in state Loading are incomplete and must not be transformed.
Permissions and retention
The staging tables can only be accessed by users with the x_autps_azure_auto.admin role. The user running your integration also needs the normal ServiceNow permissions for Data Sources, import sets and IntegrationHub ETL.
Staged rows are not deleted automatically. Review your instance’s import set cleanup policy, and disable staging on Automation Accounts you no longer need it for. Disabling staging stops new snapshots but does not delete existing rows.