Skip to main content

hybrid_runbook_worker_groups

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

Overview

Namehybrid_runbook_worker_groups
TypeResource
Idazure.automation.hybrid_runbook_worker_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource Id for the resource
namestringThe name of the resource
propertiesobjectGets or sets the hybrid worker group properties.
systemDataobjectResource system metadata.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, subscriptionIdRetrieve a hybrid runbook worker group.
list_by_automation_accountselectresourceGroupName, automationAccountName, subscriptionId$filterRetrieve a list of hybrid runbook worker groups.
createinsertresourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, subscriptionIdCreate a hybrid runbook worker group.
updateupdateresourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, subscriptionIdUpdate a hybrid runbook worker group.
deletedeleteresourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, subscriptionIdDelete a hybrid runbook worker group.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
automationAccountNamestringThe name of the automation account.
hybridRunbookWorkerGroupNamestringThe hybrid runbook worker group name
resourceGroupNamestringName of an Azure Resource group.
subscriptionIdstringGets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
$filterstringThe filter to apply on the operation.

SELECT examples

Retrieve a hybrid runbook worker group.

SELECT
id,
name,
properties,
systemData,
type
FROM azure.automation.hybrid_runbook_worker_groups
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND automationAccountName = '{{ automationAccountName }}' -- required
AND hybridRunbookWorkerGroupName = '{{ hybridRunbookWorkerGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Create a hybrid runbook worker group.

INSERT INTO azure.automation.hybrid_runbook_worker_groups (
data__properties,
data__name,
resourceGroupName,
automationAccountName,
hybridRunbookWorkerGroupName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ automationAccountName }}',
'{{ hybridRunbookWorkerGroupName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Update a hybrid runbook worker group.

UPDATE azure.automation.hybrid_runbook_worker_groups
SET
data__properties = '{{ properties }}',
data__name = '{{ name }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND automationAccountName = '{{ automationAccountName }}' --required
AND hybridRunbookWorkerGroupName = '{{ hybridRunbookWorkerGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete a hybrid runbook worker group.

DELETE FROM azure.automation.hybrid_runbook_worker_groups
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND automationAccountName = '{{ automationAccountName }}' --required
AND hybridRunbookWorkerGroupName = '{{ hybridRunbookWorkerGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;