Add-ScriptBundle Command | Vmware PowerCLI Reference

Add-ScriptBundle

Uploads the script bundle to the Auto Deploy server.The name of the script bundle will be used as the identifier for the object minus the tgz extension.The script bundles will be treated just like ImageProfiles. A script bundle object can be associated with the rule.Once uploaded Get-ScriptBundle cmdlet can be used to retrieve script bundles and used for rule creation.You must have the "AutoDeploy.Profile.Edit" privilege on the root folder of vCenter Server to use this cmdlet.

Syntax

Add-ScriptBundle
-FileUri < String >
[-ProgressAction < ActionPreference > ]
[-Update ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
FileUri String named
  • pipeline
optional ProgressAction ActionPreference named
optional Update SwitchParameter named
Updates the cache of the Auto Deploy server if this parameter is passed and the bundle already exists .

Output

Examples

Example 1

Add-ScriptBundle "file:///c:/temp/script-bundle-0.tgz"

Uploads the script bundle located at the path to the Auto Deploy Server.

Related Commands

ScriptBundle

The cmdlet will take in the file URI to the script bundle and upload it to Auto Deploy. The name of the script bundle will be used as the identifier for the object minus the tgz extension.

Gets a ScriptBundle object.

The cmdlet takes in a script bundle and removes it from Auto Deploy.

ScriptBundleAssociation

Associates the specified script bundle with the specified ESXi system.