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.
- Verify that you can run the script in the ESXi Shell.
- Navigate to
. By default, only the administrator role has privileges to use the vSphere Auto Deploy service.
- Select the Script Bundles tab.
- Click Upload.
- Browse to a script bundle file and select Upload.
The script is present in the Script Bundles list.
- (Optional) Select a script bundle, click Remove, and confirm the selection.
The script bundle is deleted from the list.
What to do next
- Activate a vSphere Auto Deploy rule. See Activate, Deactivate, and Reorder Deploy Rules.
- Edit a vSphere Auto Deploy rule. See Edit an Image Profile.
- Clone a vSphere Auto Deploy rule. See Clone a Deploy Rule
- View the host location, image profile, host profile, and added script bundles. See View Host Associations.
- Remediate non-compliant hosts. See Remediate a Non-compliant Host.
- Change the image profile association of a host. See Edit the Image Profile Association of a Host.