Adding a Post Script

Updated

On this page

Add a post script to a machine in a failover group to execute an action on the destination VM after a failover operation.

Note: For Microsoft Azure, you can use PowerShell in Windows VMs and shell script in UNIX VMs.

Procedure

  1. When adding a failover group, on the Add failover group page, under Machines, in the Actions column, click the action button, and then select Add post script.

    For an existing failover group, under Machines, in the Actions column, click the action button , and then select Edit postscript.

    The Post script options dialog box appears.

  2. Enter the following information:

    • UNC network path: Enter the full UNC network path for the pre script, including the name of the script.

    • Username: Enter the user name for a user account that has permissions to access the network path for the script.

    • Password: Enter the password for the user account.

    • Confirm password: Re-enter the password.

    • VM guest options: Provide guest VM credentials:

      • Username: Enter the user name for a user account that has permissions to run scripts on the guest VM.

      • Password: Enter the password for the user account.

      • Confirm password: Re-enter the password.

  3. Click Save.