Automation Account - List By Resource Group

Retrieve a list of accounts within a given resource group.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts?api-version=2015-10-31

URI Parameters

Name In Required Type Description
resourceGroupName
path True
  • string

Name of an Azure Resource group.

Regex pattern: ^[-\w\._]+$

subscriptionId
path True
  • string

Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True
  • string

Client Api Version.

Responses

Name Type Description
200 OK

OK

Other Status Codes

Automation error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

List automation accounts by resource group

Sample Request

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts?api-version=2015-10-31

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myaccount",
      "location": "eastus2",
      "name": "myaccount",
      "type": "Microsoft.Automation/AutomationAccounts",
      "properties": {
        "creationTime": "2016-09-24T00:47:04.227+00:00",
        "lastModifiedTime": "2017-02-09T21:35:16.4+00:00",
        "lastModifiedBy": "myEmailId@microsoft.com",
        "state": "Ok"
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAccount123",
      "location": "eastus2",
      "name": "myAccount123",
      "type": "Microsoft.Automation/AutomationAccounts",
      "properties": {
        "creationTime": "2016-09-29T00:32:32.52+00:00",
        "lastModifiedTime": "2017-02-09T21:35:16.4+00:00",
        "lastModifiedBy": "myEmailId@microsoft.com",
        "state": "Ok"
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAccountasfads",
      "location": "East US 2",
      "name": "myAccountasfads",
      "type": "Microsoft.Automation/AutomationAccounts",
      "properties": {
        "creationTime": "2017-03-24T23:21:03.27+00:00",
        "lastModifiedTime": "2017-03-24T23:21:03.27+00:00",
        "lastModifiedBy": "myEmailId@microsoft.com",
        "state": "Ok"
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount1",
      "location": "East US 2",
      "name": "myAutomationAccount1",
      "type": "Microsoft.Automation/AutomationAccounts",
      "properties": {
        "creationTime": "2017-03-24T23:22:33.26+00:00",
        "lastModifiedTime": "2017-03-24T23:22:33.26+00:00",
        "lastModifiedBy": "myEmailId@microsoft.com",
        "state": "Ok"
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11",
      "location": "East US 2",
      "name": "myAutomationAccount11",
      "type": "Microsoft.Automation/AutomationAccounts",
      "properties": {
        "creationTime": "2017-03-26T02:10:24.523+00:00",
        "lastModifiedTime": "2017-03-26T02:11:12.027+00:00",
        "lastModifiedBy": "myEmailId@microsoft.com",
        "state": "Ok"
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount2",
      "location": "East US 2",
      "name": "myAutomationAccount2",
      "type": "Microsoft.Automation/AutomationAccounts",
      "properties": {
        "creationTime": "2017-03-24T23:24:20.31+00:00",
        "lastModifiedTime": "2017-03-24T23:24:20.31+00:00",
        "lastModifiedBy": "myEmailId@microsoft.com",
        "state": "Ok"
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount3",
      "location": "East US 2",
      "name": "myAutomationAccount3",
      "type": "Microsoft.Automation/AutomationAccounts",
      "properties": {
        "creationTime": "2017-03-24T23:24:43.967+00:00",
        "lastModifiedTime": "2017-03-24T23:24:43.967+00:00",
        "lastModifiedBy": "myEmailId@microsoft.com",
        "state": "Ok"
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount4",
      "location": "East US 2",
      "name": "myAutomationAccount4",
      "type": "Microsoft.Automation/AutomationAccounts",
      "properties": {
        "creationTime": "2017-03-25T02:04:56.9+00:00",
        "lastModifiedTime": "2017-03-25T02:04:56.9+00:00",
        "lastModifiedBy": "myEmailId@microsoft.com",
        "state": "Ok"
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount6",
      "location": "East US 2",
      "name": "myAutomationAccount6",
      "type": "Microsoft.Automation/AutomationAccounts",
      "properties": {
        "creationTime": "2017-03-25T02:10:44.567+00:00",
        "lastModifiedTime": "2017-03-25T02:10:44.567+00:00",
        "lastModifiedBy": "myEmailId@microsoft.com",
        "state": "Ok"
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount7",
      "location": "East US 2",
      "name": "myAutomationAccount7",
      "type": "Microsoft.Automation/AutomationAccounts",
      "properties": {
        "creationTime": "2017-03-25T02:19:17.943+00:00",
        "lastModifiedTime": "2017-03-25T02:19:17.943+00:00",
        "lastModifiedBy": "myEmailId@microsoft.com",
        "state": "Ok"
      }
    }
  ]
}

Definitions

AutomationAccount

Definition of the automation account type.

AutomationAccountListResult

The response model for the list account operation.

AutomationAccountState

Gets status of account.

ErrorResponse

Error response of an operation failure

Sku

The account SKU.

SkuNameEnum

Gets or sets the SKU name of the account.

AutomationAccount

Definition of the automation account type.

Name Type Description
etag
  • string

Gets or sets the etag of the resource.

id
  • string

Fully qualified resource Id for the resource

location
  • string

The Azure Region where the resource lives

name
  • string

The name of the resource

properties.creationTime
  • string

Gets the creation time.

properties.description
  • string

Gets or sets the description.

properties.lastModifiedBy
  • string

Gets or sets the last modified by.

properties.lastModifiedTime
  • string

Gets the last modified time.

properties.sku

Gets or sets the SKU of account.

properties.state

Gets status of account.

tags
  • object

Resource tags.

type
  • string

The type of the resource.

AutomationAccountListResult

The response model for the list account operation.

Name Type Description
nextLink
  • string

Gets or sets the next link.

value

Gets or sets list of accounts.

AutomationAccountState

Gets status of account.

Name Type Description
Ok
  • string
Suspended
  • string
Unavailable
  • string

ErrorResponse

Error response of an operation failure

Name Type Description
code
  • string

Error code

message
  • string

Error message indicating why the operation failed.

Sku

The account SKU.

Name Type Description
capacity
  • integer

Gets or sets the SKU capacity.

family
  • string

Gets or sets the SKU family.

name

Gets or sets the SKU name of the account.

SkuNameEnum

Gets or sets the SKU name of the account.

Name Type Description
Basic
  • string
Free
  • string