Skip to main content

hybrid_runbook_workers

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

Overview

Namehybrid_runbook_workers
TypeResource
Idazure.automation.hybrid_runbook_workers

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
hybridRunbookWorkerGroupNametextfield from the properties object
hybridRunbookWorkerIdtextfield from the properties object
iptextfield from the properties object
last_seen_date_timetextfield from the properties object
registered_date_timetextfield 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"
vm_resource_idtextfield from the properties object
worker_nametextfield from the properties object
worker_typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, resourceGroupName, subscriptionIdRetrieve a hybrid runbook worker.
list_by_hybrid_runbook_worker_groupSELECTautomationAccountName, hybridRunbookWorkerGroupName, resourceGroupName, subscriptionIdRetrieve a list of hybrid runbook workers.
createINSERTautomationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, resourceGroupName, subscriptionId, data__propertiesCreate a hybrid runbook worker.
deleteDELETEautomationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, resourceGroupName, subscriptionIdDelete a hybrid runbook worker.
moveEXECautomationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, resourceGroupName, subscriptionIdMove a hybrid worker to a different group.

SELECT examples

Retrieve a list of hybrid runbook workers.

SELECT
id,
name,
automationAccountName,
hybridRunbookWorkerGroupName,
hybridRunbookWorkerId,
ip,
last_seen_date_time,
registered_date_time,
resourceGroupName,
subscriptionId,
system_data,
type,
vm_resource_id,
worker_name,
worker_type
FROM azure.automation.vw_hybrid_runbook_workers
WHERE automationAccountName = '{{ automationAccountName }}'
AND hybridRunbookWorkerGroupName = '{{ hybridRunbookWorkerGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified hybrid_runbook_workers resource.

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