Set-ESXImageProfileAssociation Command | Vmware PowerCLI Reference

Set-ESXImageProfileAssociation

Associates the specified image profile with the specified ESXi system. Currently, the Entities parameter can point only to ESXi hosts.You must have the "AutoDeploy.Profile.Edit" privilege on the root folder of vCenter Server to use this cmdlet.Apply-ESXImageProfile is an alias for Set-ESXImageProfileAssociation.

Syntax

Set-ESXImageProfileAssociation
[ -Entities ] < VIObjectCore[] >
-ImageProfile < ImageProfile >
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Entities VIObjectCore[] 1
  • pipeline
Must be an ESXi host. Use the Get-VMHost PowerCLI cmdlet to find a host.
required
ImageProfile ImageProfile named
Image profile to associate with the specified ESXi host.
optional ProgressAction ActionPreference named

Output

Examples

Example 1

Set-ESXImageProfileAssociation "MyImage" "h1","h2"

Associate the "MyImage" image profile with the hosts named "h1" and "h2".

Example 2

$img = Get-ESXImageProfile -Name "MyImage"
Set-ESXImageProfileAssociation $img (Get-VMHost "h1")

Associate an image profile with the host named "h1" using PowerCLI objects.

Related Commands

ESXImageProfileAssociation

Associates the specified image profile with the specified ESXi system.

EsxCli

This cmdlet exposes the ESXCLI functionality.

EsxImageProfile

EsxSoftwareDepot

EsxSoftwarePackage

EsxTop

This cmdlet exposes the esxtop functionality.