Skip to main content

agent_registration_information

Creates, updates, deletes, gets or lists an agent_registration_information resource.

Overview

Nameagent_registration_information
TypeResource
Idazure.automation.agent_registration_information

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringGets or sets the id.
dscMetaConfigurationstringGets or sets the dsc meta configuration.
endpointstringGets or sets the dsc server endpoint.
keysobjectGets or sets the agent registration keys.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, automation_account_name, subscription_idRetrieve the automation agent registration information.
regenerate_keyexecresource_group_name, automation_account_name, subscription_id, keyNameRegenerate a primary or secondary agent registration key.

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.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Retrieve the automation agent registration information.

SELECT
id,
dscMetaConfiguration,
endpoint,
keys
FROM azure.automation.agent_registration_information
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND automation_account_name = '{{ automation_account_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Regenerate a primary or secondary agent registration key.

EXEC azure.automation.agent_registration_information.regenerate_key 
@resource_group_name='{{ resource_group_name }}' --required,
@automation_account_name='{{ automation_account_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"keyName": "{{ keyName }}"
}'
;