Add a resource script to a resource block
task australia Updated Sep 10, 2026 1 min read add-resource-script-resource-block.md
A resource script operates on a resource during deployment or returns data to the CMDB after a resource is deployed.
Before you begin
Role required: sn_cmp.cloud_service_designer
Procedure
-
In the Cloud Admin Portal, navigate to Design > Resource Blocks.
-
Open the resource block and then set it to Draft [Omitted image "draft-published-slider.png"] Alt text: Draft . state.
-
On the Resource Script tab, specify a unique and meaningful Name and then define the script:
|
Script |
Script code. |
|
Type |
Type of script:- Instance Script: Javascript that performs an operation on the instance (for example, a subflow).
|
Add as many scripts as are needed.
Parent Topic:Resource blocks in Cloud Provisioning and Governance
60 lines · 2.0 KB
---
title: Add a resource script to a resource block
description: A resource script operates on a resource during deployment or returns data to the CMDB after a resource is deployed.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/cloud-configuration-governance/add-resource-script-resource-block.html
release: australia
product: Cloud Configuration Governance
classification: cloud-configuration-governance
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Resource blocks in Cloud Provisioning and Governance, Cloud Admin Portal, Cloud Provisioning and Governance administration guide, Cloud Provisioning and Governance, ITOM Cloud Accelerate, IT Operations Management]
---
# Add a resource script to a resource block
A resource script operates on a resource during deployment or returns data to the CMDB after a resource is deployed.
## Before you begin
Role required: sn\_cmp.cloud\_service\_designer
## Procedure
1. In the Cloud Admin Portal, navigate to **Design** > **Resource Blocks**.
2. Open the resource block and then set it to **Draft** \[Omitted image "draft-published-slider.png"\] Alt text: Draft . state.
3. On the **Resource Script** tab, specify a unique and meaningful **Name** and then define the script:
<table id="table_wqf_ygs_vz"><tbody><tr><td>
Script
</td><td>
Script code.
</td></tr><tr><td>
Type
</td><td>
Type of script:- Instance Script: Javascript that performs an operation on the instance \(for example, a subflow\).
- PowerShell Script
- Python Script
- Response Processor: Converts return data from the external cloud API to the operation implementation into a format that the CMDB can accept.
- Shell Script
</td></tr></tbody>
</table>4. Click **Submit**.
Add as many scripts as are needed.
**Parent Topic:**[Resource blocks in Cloud Provisioning and Governance](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/cloud-configuration-governance/resource-blocks.md)
| title | Add a resource script to a resource block |
| description | A resource script operates on a resource during deployment or returns data to the CMDB after a resource is deployed. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/it-operations-management/cloud-configuration-governance/add-resource-script-resource-block.html |
| release | australia |
| product | Cloud Configuration Governance |
| classification | cloud-configuration-governance |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Resource blocks in Cloud Provisioning and GovernanceCloud Admin PortalCloud Provisioning and Governance administration guideCloud Provisioning and GovernanceITOM Cloud AccelerateIT Operations Management |