---
sourceDocument: Yokohama IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/it-operations-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Add a resource script to a resource block

# Add a resource script to a resource block {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

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 DesignResource Blocks.
2. Open the resource block and then set it to Draft ![Draft .]() state.
3. 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 workflow). * 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 {#add-resource-script-resource-block__ul_dwx_zgs_vz} |
   [ ]

   {#add-resource-script-resource-block__table_wqf_ygs_vz}
4. Click Submit.  
   Add as many scripts as are needed.

*[\>]: and then


