Set-VMHostProfileImageCacheConfiguration

This cmdlet modifies the image cache configuration for the given host profile.

Syntax

[-InstallationType]  <VMHostProfileInstallationType>
-ImageCacheConfiguration  <VMHostProfileImageCacheConfiguration[]>
[-DiskArguments  <String>]
[-IgnoreSsd  <Boolean>]
[-InstallationDevice  <VMHostProfileInstallationDevice>]
[-OverwriteVmfs  <Boolean>]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
InstallationType
VMHostProfileInstallationType 1 Specifies the installation type that can be either stateless caching or statefull install.
required
ImageCacheConfiguration
VMHostProfileImageCacheConfiguration[] named
  • pipeline
  • Specifies the configuration that you want to modify.
    optional
    DiskArguments
    String named Specify a comma-separated list of disks that you want to use based on your order of preference. You can specify more than one disk. Default value is the local disk for this argument.
    optional
    IgnoreSsd
    Boolean named Excludes solid-state disks from eligibility.
    optional
    InstallationDevice
    VMHostProfileInstallationDevice named Specifies the installation device that can be either on a host (Disk) or on a USB disk.
    optional
    OverwriteVmfs
    Boolean named Allows the system to overwrite existing VMFS volumes, if the space is not enough to store the image.
    optional
    Server
    VIServer[] named
  • pipeline
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Host.Profile.VMHostProfileImageCacheConfiguration[]

    Examples


    Example 1

    PS C:\> $conf = Get-VMHostProfileImageCacheConfiguration -HostProfile "Host_Profile"
    PS C:\> Set-VMHostProfileImageCacheConfiguration -ImageCacheConfiguration $conf -InstallationType StatelessCaching -InstallationDevice Disk

    Modifies the image cache configuration by setting the installation type to stateless and device type to Disk for the host profile named Host_Profile.

    Related Commands

    Feedback

    Was this page helpful?