---
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


---

# Create cloud initialization script templates and a script

# Create cloud initialization script templates and a script {#ariaid-title1}

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

Create cloud initialization templates and a script to use during VM
provisioning.

## Before you begin

Role required: cloud_admin

## Procedure

1. In the Cloud Admin Portal, navigate to DesignCloud ScriptsCloud Script Templates.
2. Click New, enter the name and content of the script, and then click Submit.  
   Create as many script templates as needed.
3. In the Cloud Admin Portal, navigate to DesignCloud Scripts.
4. Click New.
5. Enter a descriptive name and create script that uses the template name in the following line of code (scriptName is the name of the template):  

       templateResolver.getTemplate(scriptName);

   Note:  
   For more information, see [Cloud scripts and
   cloud script templates](https://servicenow-prod.fluidtopics.net/IZjjZnudGUfk4RkwG6Kxcg "In the Cloud Provisioning and Governance application, script execution is divided into cloud scripts and cloud script templates. Use scripts in blueprints, resource blocks, OS profiles, and use policy scripts to set request form attributes. Policy scripts cannot override user data.").
6. Click Submit.

## What to do next

To run a script at the time a virtual resource is provisioned, map the script to an OS profile. To run a post-provisioning script, create a blueprint and specify the script in the Execute Script operation. See [Example: Post-provision cloud script](https://servicenow-prod.fluidtopics.net/oV2oxB8mwdpbAlyVj~_8Vw "This example shows a cloud script that runs after a user provisions a virtual machine.") for an example.

*[\>]: and then


