Skip to main content

fields

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

Overview

Namefields
TypeResource
Idazure.automation.fields

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringGets or sets the name of the field.
typestringGets or sets the type of the field.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_typeselectresourceGroupName, automationAccountName, moduleName, typeName, subscriptionIdRetrieve a list of fields of a given type identified by module name.

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
automationAccountNamestringThe name of the automation account.
moduleNamestringThe name of module.
resourceGroupNamestringName of an Azure Resource group.
subscriptionIdstringGets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
typeNamestringThe name of type.

SELECT examples

Retrieve a list of fields of a given type identified by module name.

SELECT
name,
type
FROM azure.automation.fields
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND automationAccountName = '{{ automationAccountName }}' -- required
AND moduleName = '{{ moduleName }}' -- required
AND typeName = '{{ typeName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;