Skip to main content

hybrid_runbook_worker_group

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

Overview

Namehybrid_runbook_worker_group
TypeResource
Idazure.automation.hybrid_runbook_worker_group

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
credentialobjectSets the credential of a worker group.
groupTypestringType of the HybridWorkerGroup. Known values are: "User" and "System". (User, System)
locationstringThe geo-location where the resource lives. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, automation_account_name, hybrid_runbook_worker_group_name, subscription_idRetrieve a hybrid runbook worker group.
list_by_automation_accountselectresource_group_name, automation_account_name, subscription_id$filterRetrieve a list of hybrid runbook worker groups.
createinsertresource_group_name, automation_account_name, hybrid_runbook_worker_group_name, subscription_idCreate a hybrid runbook worker group.
updateupdateresource_group_name, automation_account_name, hybrid_runbook_worker_group_name, subscription_idUpdate a hybrid runbook worker group.
deletedeleteresource_group_name, automation_account_name, hybrid_runbook_worker_group_name, subscription_idDelete 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
automation_account_namestringThe name of the automation account. Required.
hybrid_runbook_worker_group_namestringThe hybrid runbook worker group name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$filterstringThe filter to apply on the operation. Default value is None.

SELECT examples

Retrieve a hybrid runbook worker group.

SELECT
id,
name,
credential,
groupType,
location,
systemData,
tags,
type
FROM azure.automation.hybrid_runbook_worker_group
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND automation_account_name = '{{ automation_account_name }}' -- required
AND hybrid_runbook_worker_group_name = '{{ hybrid_runbook_worker_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a hybrid runbook worker group.

INSERT INTO azure.automation.hybrid_runbook_worker_group (
properties,
name,
resource_group_name,
automation_account_name,
hybrid_runbook_worker_group_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ name }}',
'{{ resource_group_name }}',
'{{ automation_account_name }}',
'{{ hybrid_runbook_worker_group_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update a hybrid runbook worker group.

UPDATE azure.automation.hybrid_runbook_worker_group
SET
properties = '{{ properties }}',
name = '{{ name }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND automation_account_name = '{{ automation_account_name }}' --required
AND hybrid_runbook_worker_group_name = '{{ hybrid_runbook_worker_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a hybrid runbook worker group.

DELETE FROM azure.automation.hybrid_runbook_worker_group
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND automation_account_name = '{{ automation_account_name }}' --required
AND hybrid_runbook_worker_group_name = '{{ hybrid_runbook_worker_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;