Configure a Step to Execute a Local Script
You can configure a user-defined step to execute a script that resides on the instance. The script type and format must comply with all the script type and format restrictions.
For a list of script type and format restrictions, see Limitations and Considerations.
Note
If you want a user-defined local script step to execute on a movable compute instance after it has moved to the standby region:
Scripts that exit with a non-zero code are considered failed and result in the user-defined step failing execution.
If you want a user-defined local script step to execute on a movable compute instance after it has moved to the standby region:
- Configure the user-defined group and the step for the script to execute on the primary compute instance.
- Edit the DR plan and reorder the groups to move this user-defined group and step to a location in the DR plan that is after the group where the movable compute instance is launched in the standby region.
Parent topic: Add User-Defined Plan Groups and Steps