Automation Account - Create Or Update
Create or update automation account.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}?api-version=2021-06-22
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
automation
|
path | True |
string |
The name of the automation account. |
resource
|
path | True |
string |
Name of an Azure Resource group. Regex pattern: |
subscription
|
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. |
Request Body
Name | Type | Description |
---|---|---|
identity |
Sets the identity property for automation account |
|
location |
string |
Gets or sets the location of the resource. |
name |
string |
Gets or sets name of the resource. |
properties.disableLocalAuth |
boolean |
Indicates whether requests using non-AAD authentication are blocked |
properties.encryption |
Set the encryption properties for the automation account |
|
properties.publicNetworkAccess |
boolean |
Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet |
properties.sku |
Gets or sets account SKU. |
|
tags |
object |
Gets or sets the tags attached to the resource. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
201 Created |
Created |
|
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
Create or update automation account
Sample Request
PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9?api-version=2021-06-22
{
"properties": {
"sku": {
"name": "Free"
}
},
"name": "myAutomationAccount9",
"location": "East US 2"
}
Sample Response
{
"name": "myAutomationAccount9",
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9",
"type": "Microsoft.Automation/AutomationAccounts",
"location": "East US 2",
"tags": {},
"etag": null,
"properties": {
"sku": {
"name": "Free",
"family": null,
"capacity": null
},
"state": "Ok",
"creationTime": "2017-03-26T01:13:43.267+00:00",
"lastModifiedBy": "myEmailId@microsoft.com",
"lastModifiedTime": "2017-03-26T01:13:43.267+00:00"
}
}
{
"name": "ContoseAutomationAccount",
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9",
"type": "Microsoft.Automation/AutomationAccounts",
"location": "East US 2",
"tags": {},
"etag": null,
"properties": {
"sku": {
"name": "Free",
"family": null,
"capacity": null
},
"state": "Ok",
"creationTime": "2017-03-28T18:21:15.187+00:00",
"lastModifiedBy": "myEmaild@microsoft.com",
"lastModifiedTime": "2017-03-28T18:21:15.187+00:00"
}
}
Definitions
Name | Description |
---|---|
Automation |
Definition of the automation account type. |
Automation |
The parameters supplied to the create or update automation account operation. |
Automation |
Gets status of account. |
created |
The type of identity that created the resource. |
Encryption |
Encryption Key Source |
Encryption |
The encryption settings for automation account |
Error |
Error response of an operation failure |
Identity |
Identity for the resource. |
Key |
Settings concerning key vault encryption for a configuration store. |
Private |
A private endpoint connection |
Private |
Private endpoint which the connection belongs to. |
Private |
Connection State of the Private Endpoint Connection. |
Resource |
The identity type. |
Sku |
The account SKU. |
Sku |
Gets or sets the SKU name of the account. |
system |
Metadata pertaining to creation and last modification of the resource. |
User |
The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. |
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 |
identity |
Identity for the resource. |
|
location |
string |
The Azure Region where the resource lives |
name |
string |
The name of the resource |
properties.automationHybridServiceUrl |
string |
URL of automation hybrid service which is used for hybrid worker on-boarding. |
properties.creationTime |
string |
Gets the creation time. |
properties.description |
string |
Gets or sets the description. |
properties.disableLocalAuth |
boolean |
Indicates whether requests using non-AAD authentication are blocked |
properties.encryption |
Encryption properties for the automation account |
|
properties.lastModifiedBy |
string |
Gets or sets the last modified by. |
properties.lastModifiedTime |
string |
Gets the last modified time. |
properties.privateEndpointConnections |
List of Automation operations supported by the Automation resource provider. |
|
properties.publicNetworkAccess |
boolean |
Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet |
properties.sku |
Gets or sets the SKU of account. |
|
properties.state |
Gets status of account. |
|
systemData |
Resource system metadata. |
|
tags |
object |
Resource tags. |
type |
string |
The type of the resource. |
AutomationAccountCreateOrUpdateParameters
The parameters supplied to the create or update automation account operation.
Name | Type | Description |
---|---|---|
identity |
Sets the identity property for automation account |
|
location |
string |
Gets or sets the location of the resource. |
name |
string |
Gets or sets name of the resource. |
properties.disableLocalAuth |
boolean |
Indicates whether requests using non-AAD authentication are blocked |
properties.encryption |
Set the encryption properties for the automation account |
|
properties.publicNetworkAccess |
boolean |
Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet |
properties.sku |
Gets or sets account SKU. |
|
tags |
object |
Gets or sets the tags attached to the resource. |
AutomationAccountState
Gets status of account.
Name | Type | Description |
---|---|---|
Ok |
string |
|
Suspended |
string |
|
Unavailable |
string |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
EncryptionKeySourceType
Encryption Key Source
Name | Type | Description |
---|---|---|
Microsoft.Automation |
string |
|
Microsoft.Keyvault |
string |
EncryptionProperties
The encryption settings for automation account
Name | Type | Description |
---|---|---|
identity |
User identity used for CMK. |
|
keySource |
Encryption Key Source |
|
keyVaultProperties |
Key vault properties. |
ErrorResponse
Error response of an operation failure
Name | Type | Description |
---|---|---|
code |
string |
Error code |
message |
string |
Error message indicating why the operation failed. |
Identity
Identity for the resource.
Name | Type | Description |
---|---|---|
principalId |
string |
The principal ID of resource identity. |
tenantId |
string |
The tenant ID of resource. |
type |
The identity type. |
|
userAssignedIdentities |
The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. |
KeyVaultProperties
Settings concerning key vault encryption for a configuration store.
Name | Type | Description |
---|---|---|
keyName |
string |
The name of key used to encrypt data. |
keyVersion |
string |
The key version of the key used to encrypt data. |
keyvaultUri |
string |
The URI of the key vault key used to encrypt data. |
PrivateEndpointConnection
A private endpoint connection
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource Id for the resource |
name |
string |
The name of the resource |
properties.groupIds |
string[] |
Gets the groupIds. |
properties.privateEndpoint |
Private endpoint which the connection belongs to. |
|
properties.privateLinkServiceConnectionState |
Connection State of the Private Endpoint Connection. |
|
type |
string |
The type of the resource. |
PrivateEndpointProperty
Private endpoint which the connection belongs to.
Name | Type | Description |
---|---|---|
id |
string |
Resource id of the private endpoint. |
PrivateLinkServiceConnectionStateProperty
Connection State of the Private Endpoint Connection.
Name | Type | Description |
---|---|---|
actionsRequired |
string |
Any action that is required beyond basic workflow (approve/ reject/ disconnect) |
description |
string |
The private link service connection description. |
status |
string |
The private link service connection status. |
ResourceIdentityType
The identity type.
Name | Type | Description |
---|---|---|
None |
string |
|
SystemAssigned |
string |
|
SystemAssigned, UserAssigned |
string |
|
UserAssigned |
string |
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 |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |
UserAssignedIdentities
The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
Name | Type | Description |
---|---|---|
|