Skip to main content

accounts

Creates, updates, deletes, gets or lists a accounts resource.

Overview

Nameaccounts
TypeResource
Idazure.automation.accounts

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
automationAccountNametextfield from the properties object
automation_hybrid_service_urltextfield from the properties object
creation_timetextfield from the properties object
disable_local_authtextfield from the properties object
encryptiontextfield from the properties object
etagtextGets or sets the etag of the resource.
identitytextIdentity for the resource.
last_modified_bytextfield from the properties object
last_modified_timetextfield from the properties object
locationtextThe geo-location where the resource lives
private_endpoint_connectionstextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
skutextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, resourceGroupName, subscriptionIdGet information about an Automation Account.
listSELECTsubscriptionIdRetrieve a list of accounts within a given subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdRetrieve a list of accounts within a given resource group.
create_or_updateINSERTautomationAccountName, resourceGroupName, subscriptionIdCreate or update automation account.
deleteDELETEautomationAccountName, resourceGroupName, subscriptionIdDelete an automation account.
updateUPDATEautomationAccountName, resourceGroupName, subscriptionIdUpdate an automation account.

SELECT examples

Retrieve a list of accounts within a given subscription.

SELECT
description,
automationAccountName,
automation_hybrid_service_url,
creation_time,
disable_local_auth,
encryption,
etag,
identity,
last_modified_by,
last_modified_time,
location,
private_endpoint_connections,
public_network_access,
resourceGroupName,
sku,
state,
subscriptionId,
system_data,
tags
FROM azure.automation.vw_accounts
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new accounts resource.

/*+ create */
INSERT INTO azure.automation.accounts (
automationAccountName,
resourceGroupName,
subscriptionId,
properties,
name,
location,
identity,
tags
)
SELECT
'{{ automationAccountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ name }}',
'{{ location }}',
'{{ identity }}',
'{{ tags }}'
;

UPDATE example

Updates a accounts resource.

/*+ update */
UPDATE azure.automation.accounts
SET
properties = '{{ properties }}',
name = '{{ name }}',
location = '{{ location }}',
identity = '{{ identity }}',
tags = '{{ tags }}'
WHERE
automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified accounts resource.

/*+ delete */
DELETE FROM azure.automation.accounts
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';