Get the output of a DSC compilation job

 

Updated: May 26, 2016

The Get the output of a DSC compilation job task gets the output of a DSC compilation.

The related Windows PowerShell cmdlet for this task is Get-AzureRmAutomationDscCompilationJobOutput.

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-compilation-job-id} with the ID of the DSC compilation job.

Method

Request URI

GET

https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Automation/automationAccounts/{automation-account-name}/compilationJobs/{dsc-compilation-job-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.

{
   "value":[
  	{
     	"id":/subscriptions/587a968b-684b-47bf-bbcb-5eb37916adda/resourceGroups/LitwareResources/providers/Microsoft.Automation/automationAccounts/LitwareAutoAcct-A/jobs/f7b7a407-2467-4b87-9d68-23abd699347d/streams/f7b7a407-2467-4b87-9d68-23abd699347d_00635916789539357492_00000000000000000001",
     	"properties":{
        	"jobStreamId":"f7b7a407-2467-4b87-9d68-23abd699347d_00635916789539357492_00000000000000000001",
        	"summary":"f7b7a407-2467-4b87-9d68-23abd699347d:[localhost]:The 'Microsoft.PowerShell.Management' module was not imported because the 'Microsoft.PowerShell.Management' snap-in was already imported.",
        	"time":"2016-02-21T19:15:53.9357492+00:00",
        	"streamType":"Warning"
     	}
  	},
  	{
     	"id":"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/LitwareResources/providers/Microsoft.Automation/automationAccounts/LitwareAutoAcct-A/jobs/f7b7a407-2467-4b87-9d68-23abd699347d/streams/f7b7a407-2467-4b87-9d68-23abd699347d_00635916789583888672_00000000000000000002",
     	"properties":{
        	"jobStreamId":"f7b7a407-2467-4b87-9d68-23abd699347d_00635916789583888672_00000000000000000002",
        	"summary":"f7b7a407-2467-4b87-9d68-23abd699347d:[localhost]:The configuration 'LitwareSQLConfig' is loading one or more built-in resources without explicitly importing associated modules. Add Import-DscResource –ModuleName ’PSDesiredStateConfiguration’ to your configuration to avoid this message.",
        	"time":"2016-02-21T19:15:58.3888672+00:00",
        	"streamType":"Warning"
     	}
  	},
  	{
     	"id":"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/LitwareResources/providers/Microsoft.Automation/automationAccounts/LitwareAutoAcct-A/jobs/f7b7a407-2467-4b87-9d68-23abd699347d/streams/f7b7a407-2467-4b87-9d68-23abd699347d_00635916789647169901_00000000000000000003",
     	"properties":{
        	"jobStreamId":"f7b7a407-2467-4b87-9d68-23abd699347d_00635916789647169901_00000000000000000003",
        	"summary":"",
        	"time":"2016-02-21T19:16:04.7169901+00:00",
        	"streamType":"Output"
     	}
  	}
   ]
}

200

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

Show: