Start-​Azure​Rm​Automation​Dsc​Compilation​Job

Compiles a DSC configuration in Automation.

Syntax

Start-AzureRmAutomationDscCompilationJob
     [-ResourceGroupName] <String>
     [-AutomationAccountName] <String>
     [-ConfigurationName] <String>
     [-ConfigurationData <IDictionary>]
     [-Parameters <IDictionary>]
     [<CommonParameters>]

Description

The Start-AzureRmAutomationDscCompilationJob cmdlet compiles an APS Desired State Configuration (DSC) configuration in Azure Automation.

Examples

Example 1: Compile an Azure DSC configuration in Automation

PS C:\>$Params = @{"StringParam"="Hello World";"IntegerParam"=32}
PS C:\> Start-AzureRmAutomationDscCompilationJob -ConfigurationName "Config01" -Parameters $Params -ResourceGroupName "ResourceGroup01"

The first command creates a dictionary of parameters, and stores them in the $Params variable.

The second command compiles the DSC configuration named Config01. The command includes the values in $Params for DSC configuration parameters.

Required Parameters

-AutomationAccountName

Specifies the name of the Automation account that contains the DSC configuration that this cmdlet compiles.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ConfigurationName

Specifies the name of the DSC configuration that this cmdlet compiles.

Type:String
Aliases:Name
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of a resource group in which this cmdlet compiles a configuration.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-ConfigurationData

Specifies a dictionary of configuration data for DSC configuration.

Type:IDictionary
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Parameters

Specifies a dictionary of parameters that this cmdlet uses to compile the DSC configuration.

Type:IDictionary
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False