Resource Type: dsc_xvmharddiskdrive

Defined in:
lib/puppet/type/dsc_xvmharddiskdrive.rb
Providers:
powershell

Overview

The DSC xVMHardDiskDrive resource type. Automatically generated from ‘xHyper-V/DSCResources/MSFT_xVMHardDiskDrive/MSFT_xVMHardDiskDrive.schema.mof’

To learn more about PowerShell Desired State Configuration, please visit technet.microsoft.com/en-us/library/dn249912.aspx.

For more information about built-in DSC Resources, please visit technet.microsoft.com/en-us/library/dn249921.aspx.

For more information about xDsc Resources, please visit github.com/PowerShell/DscResources.

Properties

  • ensure

    The basic property that the resource should be in.

    Supported values:
    • exists?
    • present
    • absent

Parameters

  • dsc_controllerlocation

    ControllerLocation - Specifies the number of the location on the controller where the disk is attached. If not specified, it defaults to 0.

  • dsc_controllernumber

    ControllerNumber - Specifies the number of the controller where the disk is attached. If not specified, it defaults to 0. Valid values are 0, 1, 2, 3.

  • dsc_controllertype

    ControllerType - Specifies the controller type - IDE/SCSI where the disk is attached. If not specified, it defaults to SCSI. Valid values are IDE, SCSI.

  • dsc_ensure

    Ensure - Specifies if the hard disk drive must be present or absent. If not specified, it defaults to Present. Valid values are Present, Absent.

  • dsc_path

    Path - Specifies the full path to the location of the VHD that represents the hard disk drive.

  • dsc_psdscrunascredential

    PsDscRunAsCredential

  • dsc_vmname

    VMName - Specifies the name of the virtual machine whose hard disk drive is to be manipulated.

  • name (namevar)
  • provider

    The specific backend to use for this ‘dsc_xvmharddiskdrive` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.