template
Creates, updates, deletes, gets or lists a template resource.
Overview
| Name | template |
| Type | Resource |
| Id | azure_extras.devhub.template |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
defaultVersion | string | Template Default Version. |
description | string | Template Description. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
templateName | string | Template Name. |
templateType | string | The type of the template. Known values are: "deployment", "manifest", "workflow", and "dockerfile". (deployment, manifest, workflow, dockerfile) |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
versions | array | Template Versions. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
defaultVersion | string | Template Default Version. |
description | string | Template Description. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
templateName | string | Template Name. |
templateType | string | The type of the template. Known values are: "deployment", "manifest", "workflow", and "dockerfile". (deployment, manifest, workflow, dockerfile) |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
versions | array | Template Versions. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | template_name, subscription_id | Gets a list of supported templates. Gets a list of supported templates. | |
list | select | subscription_id | Gets 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.
| Name | Datatype | Description |
|---|---|---|
subscription_id | string | |
template_name | string | The name of the Template. Required. |
SELECT examples
- get
- list
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
;
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 subscription_id = '{{ subscription_id }}' -- required
;