Compile a DSC configuration

 

Updated: May 26, 2016

The Compile a DSC configuration task compiles a DSC configuration.

The related Windows PowerShell cmdlet for this task is Start-AzureRmAutomationDscCompilationJob.

To specify the request, replace {subscription-id} with your subscription ID, {resource-group-name} with the name of your resource group, {automation-account-name} with the name of the automation account, and {dsc-configuration-id} with the ID of the DSC configuration.

Method

Request URI

PUT

https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Automation/automationAccounts/{automation-account-name}/compilationJobs/{dsc-configuration-id}?api-version=2015-10-31

URI parameter

Description

api-version

Required. Valid values include 2015-10-31

The following code shows an example of the response body.

{
   "id":/subscriptions/3519d078-42b7-4579-afda-5aafb53982b6/resourceGroups/LitwareResources/providers/Microsoft.Automation/automationAccounts/LitwareAutoAcct-A/compilationjobs/36144794-1e26-4d4f-8457-8339b4ed6d7f",
   "name":null,
   "properties":{
      "jobId":"36144794-1e26-4d4f-8457-8339b4ed6d7f",
      "creationTime":"2016-02-16T03:13:13.957+00:00",
      "provisioningState":"Processing",
      "status":"New",
      "statusDetails":"None",
      "startTime":null,
      "endTime":null,
      "lastModifiedTime":"2016-02-16T03:13:13.957+00:00",
      "lastStatusModifiedTime":"2016-02-16T03:13:13.957+00:00",
      "exception":null,
      "parameters":{

      },
      "configuration":{
         "name":"LitwareSQLConfig"
      }
   }
}

201

For information about common error codes, see Service Management Status and Error Codes

Show: