List DSC configurations

 

Updated: May 26, 2016

The List DSC configurations task lists the DSC configurations in an automaton account.

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

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.

Method

Request URI

GET

https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Automation/automationAccounts/{automation-account-name}/configurations?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/60b07e03-5d27-4ee2-861f-c6b43c44f4f7/resourceGroups/LitwareResources/providers/Microsoft.Automation/automationAccounts/LitwareAutoAcct-A/configurations/LitwareLabConfig",
         "location":"EastUS2",
         "name":"LitwareLabConfig",
         "type":"Microsoft.Automation/AutomationAccounts/Configurations",
         "properties":{
            "state":"Published",
            "creationTime":"2016-01-24T21:39:48.253+00:00",
            "lastModifiedTime":"2016-01-24T21:39:48.257+00:00"
         }
      },
      {
         "id":"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/LitwareResources/providers/Microsoft.Automation/automationAccounts/LitwareAutoAcct-A/configurations/LitwareLabConfigBak",
         "location":"EastUS2",
         "name":"LitwareLabConfigBak",
         "type":"Microsoft.Automation/AutomationAccounts/Configurations",
         "properties":{
            "state":"Published",
            "creationTime":"2016-01-24T21:55:55.223+00:00",
            "lastModifiedTime":"2016-01-24T21:55:55.223+00:00"
         }
      },
      {
         "id":"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/LitwareResources/providers/Microsoft.Automation/automationAccounts/LitwareAutoAcct-A/configurations/LitwareSQLConfig",
         "location":"EastUS2",
         "name":"LitwareSQLConfig",
         "type":"Microsoft.Automation/AutomationAccounts/Configurations",
         "properties":{
            "state":"Published",
            "creationTime":"2016-02-01T06:08:17.733+00:00",
            "lastModifiedTime":"2016-02-01T06:08:17.737+00:00"
         }
      }
   ]
}

If the number of records exceeds the page size (100 records), a 'nextLink' element is provided to link to subsequent pages as needed.

200

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

Show: