Skip to main content

template

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

Overview

Nametemplate
TypeResource
Idazure_extras.devhub.template

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.
defaultVersionstringTemplate Default Version.
descriptionstringTemplate Description.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
templateNamestringTemplate Name.
templateTypestringThe type of the template. Known values are: "deployment", "manifest", "workflow", and "dockerfile". (deployment, manifest, workflow, dockerfile)
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
versionsarrayTemplate Versions.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecttemplate_name, subscription_idGets a list of supported templates. Gets a list of supported templates.
listselectsubscription_idGets a list of supported templates. Gets a list of supported templates.

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
subscription_idstring
template_namestringThe name of the Template. Required.

SELECT examples

Gets a list of supported templates. Gets a list of supported templates.

SELECT
id,
name,
defaultVersion,
description,
systemData,
templateName,
templateType,
type,
versions
FROM azure_extras.devhub.template
WHERE template_name = '{{ template_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;