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

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
automationAccountNametextfield from the properties object
credentialtextfield from the properties object
group_typetextfield from the properties object
hybridRunbookWorkerGroupNametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, hybridRunbookWorkerGroupName, resourceGroupName, subscriptionIdRetrieve a hybrid runbook worker group.
list_by_automation_accountSELECTautomationAccountName, resourceGroupName, subscriptionIdRetrieve a list of hybrid runbook worker groups.
createINSERTautomationAccountName, hybridRunbookWorkerGroupName, resourceGroupName, subscriptionIdCreate a hybrid runbook worker group.
deleteDELETEautomationAccountName, hybridRunbookWorkerGroupName, resourceGroupName, subscriptionIdDelete a hybrid runbook worker group.
updateUPDATEautomationAccountName, hybridRunbookWorkerGroupName, resourceGroupName, subscriptionIdUpdate a hybrid runbook worker group.

SELECT examples

Retrieve a list of hybrid runbook worker groups.

SELECT
id,
name,
automationAccountName,
credential,
group_type,
hybridRunbookWorkerGroupName,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.automation.vw_hybrid_runbook_worker_groups
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.automation.hybrid_runbook_worker_groups (
automationAccountName,
hybridRunbookWorkerGroupName,
resourceGroupName,
subscriptionId,
properties,
name
)
SELECT
'{{ automationAccountName }}',
'{{ hybridRunbookWorkerGroupName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ name }}'
;

UPDATE example

Updates a hybrid_runbook_worker_groups resource.

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

DELETE example

Deletes the specified hybrid_runbook_worker_groups resource.

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