POSHOrigin_vSphere
POSHOrigin_vSphere copied to clipboard
Add support for compiling and applying a DSC configuration upon VM creation.
This will take a bit of work but it should be possible to dynamically create a DSC configuration MOF and apply it to the machine upon creation.
resource 'vsphere:vm' 'myvm' @{
#
# other options omitted for brevity
#
DSC = @(
@{
name = 'MySMBShare'
type = 'xSMBShare'
options = @{
ensure = "present"
name = "SMBShare1"
path = "C:\Users\Duser1\Desktop"
description = "This is a test SMB Share"
}
}
@{
name = 'IIS'
type = 'windowsfeature'
options = @{
name = 'web-server'
ensure = 'present'
}
}
)
}