Resource Type: dsc_xvhd

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

Overview

The DSC xVHD resource type. Automatically generated from ‘xHyper-V/DSCResources/MSFT_xVHD/MSFT_xVHD.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_ensure

    Ensure - Should the VHD be created or deleted Valid values are Present, Absent.

  • dsc_filesizebytes

    FileSizeBytes - Current size of the VHD

  • dsc_generation

    Generation - Virtual disk format - Vhd or Vhdx Valid values are Vhd, Vhdx.

  • dsc_id

    ID - Virtual Disk Identifier

  • dsc_isattached

    IsAttached - Is the VHD attached to a VM or not

    Supported values:
    • true
    • false
  • dsc_maximumsizebytes

    MaximumSizeBytes - Maximum size of Vhd to be created

  • dsc_name

    Name - Name of the VHD File

  • dsc_parentpath

    ParentPath - Parent VHD file path, for differencing disk

  • dsc_path

    Path - Folder where the VHD will be created

  • dsc_psdscrunascredential

    PsDscRunAsCredential

  • dsc_type

    Type - Type of Vhd - Dynamic, Fixed, Differencing Valid values are Dynamic, Fixed, Differencing.

  • name (namevar)
  • provider

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