Skip to main content

connections

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

Overview

Nameconnections
TypeResource
Idazure.automation.connections

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
automationAccountNametextfield from the properties object
connectionNametextfield from the properties object
connection_typetextfield from the properties object
creation_timetextfield from the properties object
field_definition_valuestextfield from the properties object
last_modified_timetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, connectionName, resourceGroupName, subscriptionIdRetrieve the connection identified by connection name.
list_by_automation_accountSELECTautomationAccountName, resourceGroupName, subscriptionIdRetrieve a list of connections.
create_or_updateINSERTautomationAccountName, connectionName, resourceGroupName, subscriptionId, data__name, data__propertiesCreate or update a connection.
deleteDELETEautomationAccountName, connectionName, resourceGroupName, subscriptionIdDelete the connection.
updateUPDATEautomationAccountName, connectionName, resourceGroupName, subscriptionIdUpdate a connection.

SELECT examples

Retrieve a list of connections.

SELECT
description,
automationAccountName,
connectionName,
connection_type,
creation_time,
field_definition_values,
last_modified_time,
resourceGroupName,
subscriptionId
FROM azure.automation.vw_connections
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.automation.connections (
automationAccountName,
connectionName,
resourceGroupName,
subscriptionId,
data__name,
data__properties,
name,
properties
)
SELECT
'{{ automationAccountName }}',
'{{ connectionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__name }}',
'{{ data__properties }}',
'{{ name }}',
'{{ properties }}'
;

UPDATE example

Updates a connections resource.

/*+ update */
UPDATE azure.automation.connections
SET
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
automationAccountName = '{{ automationAccountName }}'
AND connectionName = '{{ connectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified connections resource.

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