You can add a custom script for additional post-deployment host configuration. The script runs after you provision an ESXi host with Auto Deploy. For example, you can create a custom ESXi firewall rule and other configurations not available with Host Profiles.

Since vSphere 6.7 Update 1, you can add or remove a custom script by using the vSphere Client. A script bundle can include multiple scripts and must be delivered as a single compressed file with the .tgz extension. After uploaded to the vCenter Server, you can include the script bundle to an Auto Deploy rule.

Prerequisites

  • Verify that you can run the script in the ESXi Shell.

Procedure

  1. Navigate to Home > Auto Deploy.
    By default, only the administrator role has privileges to use the vSphere Auto Deploy service.
  2. Select the Script Bundles tab.
  3. Click Upload.
  4. Browse to a script bundle file and select Upload.
    The script is present in the Script Bundles list.
  5. (Optional) Select a script bundle, click Remove, and confirm the selection.
    The script bundle is deleted from the list.

What to do next