Invoke POSHOrigin

Brandon Olin edited this page Dec 14, 2015 · 1 revision

Compiles and invokes a POSHOrigin configuration. The custom object(s) passed into this function will be translated into DSC resource(s) and a DSC configuration will be compiled and executed.

Parameters

Name Type Required Description
ConfigData psobject[] True One or more custom objects containing the required options for the DSC resource to be provisioned
ProvisioningServer string False The name of the provisioning computer the DSC configuration will be applied to. Default value is retrieved from the provisioning_server parameter stored in $env:USERPROFILE.poshorigin\options.json. Normally this will be localhost unless manually changed.
MakeItSo switch False Injects a 'snoverism'
Verbose switch False Enables verbose output
WhatIf switch False When ProvisioningServer is set to localhost (the default), this will internally run Test-DscConfiguration against the MOF file that is compiled instead of Start-DscConfiguration. The effect is that the POSHOrigin DSC resources are only tested for compliance. NO RESOURCES WILL BE CREATED, DELETED, OR MODIFIED

Aliases

ipo

Examples

Compiles and invokes a POSHOrigin configuration. Infrastructure resources defined in $myConfig will be tested for compliance and as necessary created, deleted, or modified.

Invoke-POSHOrigin -ConfigData $myConfig -Verbose

Compiles and tests a POSHOrigin configuration. This will only test the DSC resources for compliance. NO RESOURCES WILL BE CREATED, DELETED, OR MODIFIED

Invoke-POSHOrigin -ConfigData $myConfig -Verbose -WhatIf

Make it so Number One.

Invoke-POSHOrigin -ConfigData $myConfig -Verbose -MakeItSo
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.