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.
locationstringThe location of the resource.
propertiesobjectThe properties of the resource.
tagsobjectThe tags of the resource.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, labName, artifactSourceName, name$expand, api-versionGet azure resource manager template.
listselectsubscriptionId, resourceGroupName, labName, artifactSourceName$expand, $filter, $top, $orderby, api-versionList 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
artifactSourceNamestringThe name of the artifact source.
labNamestringThe name of the lab.
namestringThe name of the azure resource manager template.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringThe subscription ID.
$expandstringSpecify the $expand query. Example: 'properties($select=displayName)'
$filterstringThe filter to apply to the operation. Example: '$filter=contains(name,'myName')
$orderbystringThe ordering expression for the results, using OData notation. Example: '$orderby=name desc'
$topinteger (int32)The maximum number of resources to return from the operation. Example: '$top=10'
api-versionstringClient API version.

SELECT examples

Get azure resource manager template.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.dev_test_labs.arm_templates
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND labName = '{{ labName }}' -- required
AND artifactSourceName = '{{ artifactSourceName }}' -- required
AND name = '{{ name }}' -- required
AND $expand = '{{ $expand }}'
AND api-version = '{{ api-version }}'
;