POSHOrigin
POSHOrigin copied to clipboard
Add support for pulling DSC resource parameter values from the result of another DSC resource.
Tell a resource to export it's properties to a known location on the filesystem after it has executed. These properties can then be read by another resource and used as if they were set explicitly on the resource. Doing this should also create a dependency on the second resource to the first.
Example:
# Assign an IP to hostname 'server01' on network '192.168.100.0'
resource 'InfoBlox:IPRecord' 'server01' @{
Network = '192.168.100.0'
ExportProperties = $true
}
resource 'VMware:VM' 'server01' @{
IPAddress = 'dummy'
ResolveProperties = @{
IPAddress = '[IPRecord]server01.IPAddress'
}
}