hybrid_runbook_workers
Creates, updates, deletes, gets or lists a hybrid_runbook_workers
resource.
Overview
Name | hybrid_runbook_workers |
Type | Resource |
Id | azure.automation.hybrid_runbook_workers |
Fields
- vw_hybrid_runbook_workers
- hybrid_runbook_workers
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | text | The name of the resource |
automationAccountName | text | field from the properties object |
hybridRunbookWorkerGroupName | text | field from the properties object |
hybridRunbookWorkerId | text | field from the properties object |
ip | text | field from the properties object |
last_seen_date_time | text | field from the properties object |
registered_date_time | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
vm_resource_id | text | field from the properties object |
worker_name | text | field from the properties object |
worker_type | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
properties | object | Definition of hybrid runbook worker property. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, resourceGroupName, subscriptionId | Retrieve a hybrid runbook worker. |
list_by_hybrid_runbook_worker_group | SELECT | automationAccountName, hybridRunbookWorkerGroupName, resourceGroupName, subscriptionId | Retrieve a list of hybrid runbook workers. |
create | INSERT | automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, resourceGroupName, subscriptionId, data__properties | Create a hybrid runbook worker. |
delete | DELETE | automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, resourceGroupName, subscriptionId | Delete a hybrid runbook worker. |
move | EXEC | automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, resourceGroupName, subscriptionId | Move a hybrid worker to a different group. |
SELECT
examples
Retrieve a list of hybrid runbook workers.
- vw_hybrid_runbook_workers
- 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 }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.automation.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: vmResourceId
value: string
- name: name
value: string
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 }}';