Skip to main content

arm_templates

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

Overview

Namearm_templates
TypeResource
Idazure.dev_test_labs.arm_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the resource.
namestringThe name of the resource.
contentsobjectThe contents of the ARM template.
createdDatestring (date-time)The creation date of the armTemplate.
descriptionstringThe description of the ARM template.
displayNamestringThe display name of the ARM template.
enabledbooleanWhether or not ARM template is enabled for use by lab user.
iconstringThe URI to the icon of the ARM template.
locationstringThe location of the resource.
parametersValueFilesInfoarrayFile name and parameter values information from all azuredeploy.*.parameters.json for the ARM template.
publisherstringThe publisher of the ARM template.
tagsobjectThe tags of the resource.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, lab_name, artifact_source_name, name, subscription_id$expandGet azure resource manager template.
listselectresource_group_name, lab_name, artifact_source_name, subscription_id$expand, $filter, $top, $orderbyList azure resource manager templates in a given artifact source.

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
artifact_source_namestringThe name of the artifact source. Required.
lab_namestringThe name of the lab. Required.
namestringThe name of the azure resource manager template. Required.
resource_group_namestringThe name of the resource group. Required.
subscription_idstring
$expandstringSpecify the $expand query. Example: 'properties($select=displayName)'. Default value is None.
$filterstringThe filter to apply to the operation. Example: '$filter=contains(name,'myName'). Default value is None.
$orderbystringThe ordering expression for the results, using OData notation. Example: '$orderby=name desc'. Default value is None.
$topintegerThe maximum number of resources to return from the operation. Example: '$top=10'. Default value is None.

SELECT examples

Get azure resource manager template.

SELECT
id,
name,
contents,
createdDate,
description,
displayName,
enabled,
icon,
location,
parametersValueFilesInfo,
publisher,
tags,
type
FROM azure.dev_test_labs.arm_templates
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND lab_name = '{{ lab_name }}' -- required
AND artifact_source_name = '{{ artifact_source_name }}' -- required
AND name = '{{ name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;