List automation accounts

 

Updated: May 26, 2016

The List automation accounts task lists the automation accounts in a resource group.

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

To specify the request, replace {subscription-id} with your subscription ID, {resource-group-name} with the name of your resource group, and {automation-account-name} with the name of the automation account to use for this task.

Method

Request URI

GET

https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Automation/automationAccounts/{automation-account-name}?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/d944d279-e7b5-42e8-8a36-8be92512064d/resourceGroups/SafeerRG/providers/Microsoft.Automation/automationAccounts/LitwareDatacenterA",
         "location":"EastUS2",
         "name":"LitwareDatacenterA",
         "type":"Microsoft.Automation/AutomationAccounts",
         "properties":{
            "creationTime":"2016-01-20T22:41:50.243+00:00",
            "lastModifiedTime":"2016-01-20T22:41:50.243+00:00",
            "lastModifiedBy":"live.com#litwaretest@live.com",
            "state":"Ok"
         }
      },
      {
         "id":"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/SafeerRG/providers/Microsoft.Automation/automationAccounts/LitwareDatacenterB",
         "location":"EastUS2",
         "name":"LitwareDatacenterB",
         "type":"Microsoft.Automation/AutomationAccounts",
         "properties":{
            "creationTime":"2016-01-21T20:01:59.78+00:00",
            "lastModifiedTime":"2016-01-21T20:01:59.78+00:00",
            "lastModifiedBy":"live.com#oaastest@live.com",
            "state":"Ok"
         }
      },
      {
         "id":"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/SafeerRG/providers/Microsoft.Automation/automationAccounts/LitwareDatacenterC",
         "location":"EastUS2",
         "name":"LitwareDatacenterC",
         "type":"Microsoft.Automation/AutomationAccounts",
         "properties":{
            "creationTime":"2016-01-22T07:40:08.717+00:00",
            "lastModifiedTime":"2016-01-22T07:40:08.717+00:00",
            "lastModifiedBy":"live.com#oaastest@live.com",
            "state":"Ok"
         }
      },
      {
         "id":"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/SafeerRG/providers/Microsoft.Automation/automationAccounts/LitwareDatacenterD",
         "location":"EastUS2",
         "name":"LitwareDatacenterD",
         "type":"Microsoft.Automation/AutomationAccounts",
         "properties":{
            "creationTime":"2016-01-23T19:53:06.34+00:00",
            "lastModifiedTime":"2016-01-23T19:53:06.34+00:00",
            "lastModifiedBy":"live.com#oaastest@live.com",
            "state":"Ok"
         }
      },
      {
         "id":"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/SafeerRG/providers/Microsoft.Automation/automationAccounts/safeer",
         "location":"EastUs2",
         "name":"safeer",
         "type":"Microsoft.Automation/AutomationAccounts",
         "properties":{
            "creationTime":"2015-05-05T19:59:06.127+00:00",
            "lastModifiedTime":"2015-11-10T21:32:44.91+00:00",
            "lastModifiedBy":"live.com#oaastest@live.com",
            "state":"Ok"
         }
      }
   ]
}

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: