--- title: Life-cycle operations in Cloud Provisioning and Governance description: Operations like Start/Stop, Deprovision, and ExecuteScript are called life-cycle operations or day-2 operations. When you request a life-cycle operation on a stack or resource, the system generates a change request. An approval policy specifies either that the change is auto-approved or that a user on the approver list must approve the change. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/cloud-configuration-governance/life-cycle-operation-cloudmgt.html release: australia product: Cloud Configuration Governance classification: cloud-configuration-governance topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 6 breadcrumb: [Perform a life-cycle operation on a stack or resource, Manage a stack, Cloud User Portal, Cloud Provisioning and Governance, ITOM Cloud Accelerate, IT Operations Management] --- # Life-cycle operations in Cloud Provisioning and Governance Operations like Start/Stop, Deprovision, and ExecuteScript are called life-cycle operations or day-2 operations. When you request a life-cycle operation on a stack or resource, the system generates a change request. An approval policy specifies either that the change is auto-approved or that a user on the approver list must approve the change. To perform an operation, you select a stack or resource and then click **Select Stack Operation** or **Select Resource Operation**. The list includes only appropriate operations for the selected resource or stack. Some operations are provided by configuration management systems like Ansible or Terraform. ## Operations in the base system - **Start** The Start operation starts selected VM. The resource status changes to On. No setting is required. - **Stop** The Stop operation stops the selected VM. The resource status changes to Off. No setting is required. - **Deprovision** The Deprovision operation terminates the selected stack and sends a notification to the stack owner. No setting is required. ## Virtual Machine 'Store Extension Interface' operations Only Google Cloud Platform and IBM Cloud support the Virtual Machine Store Extension Interface operations. The Terraform Connector ServiceNow Store app supplies the operations. - **Virtual Machine Store Extension Interface.ExecuteScript** The ExecuteScript operation runs a script on the selected Windows or Linux VM. For example, a script might install an application on a resource. See [KB0756431](https://support.servicenow.com/nav_to.do?uri=%2Fkb_knowledge.do%3Fsys_id%3Db37a29021b033748ada243f6fe4bcbda%26sysparm_record_target%3Dkb_knowledge%26sysparm_record_row%3D1%26sysparm_record_rows%3D1%26sysparm_record_list%3Dsys_created_by%253Djavascript:gs.getUserName()%255Eworkflow_stateNOT%2BINpublished%252Cobsolete%255EORDERBYDESCnumber) for detailed instructions. **Note:** To run the ExecuteScript operation, a VM must include credentials. Linux VMs inherit management key credentials when they are provisioned. For Windows VMs, use the InfuseKey operation to add credentials to the VM. In the pop-up, specify: - **ScriptType**: Shell and PowerShell scripts are supported. - **Script**: Name of the script. - **Virtual Machine Store Extension Interface.InfuseKey** For Windows VMs, the InfuseKey operation adds key credentials \(public and private key pair values\) to the VM. As a result, you can view the credentials on the Properties list of the Windows VM and can use the credentials to perform VM operations. For instructions on generating a key, see [Create an SSH key](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/cloud-configuration-governance/cloudmgt-create-ssh-key.md). To add key credentials to a Windows VM: 1. Select the Windows VM. 2. In the **Select Resource Operation** list, select **Virtual Machine Store Extension Interface.InfuseKey**. 3. In the pop-up, specify the key to use in the **UserKey** field and then click **OK**. - **Virtual Machine Store Extension Interface.Execute Job Template** Ansible supplies the Execute Job Template operation. The operation enables you to attach a node to an Ansible server and execute a package on that VME. For example, a script might install an application on a resource. In the pop-up, specify:
| WorkloadConfigProviderType | |
| WorkloadConfigProvider | |
| Inventory | |
| HostGroup | The list includes all possible applications \(called groups in Ansible\), not just the applications that the configuration management provider supports. Therefore, if users select an unsupported application, the provisioning fails. |
| ApplicationProfile | Select the application profile to execute on the selected resource. |