versioned_template
Creates, updates, deletes, gets or lists a versioned_template resource.
Overview
| Name | versioned_template |
| Type | Resource |
| Id | azure_extras.devhub.versioned_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. |
parameters | array | Template Parameters. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
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". |
version | string | Template Version. |
| 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. |
parameters | array | Template Parameters. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
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". |
version | string | Template Version. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | template_name, template_version, subscription_id | Gets a VersionedTemplate. Gets a VersionedTemplate. | |
list | select | template_name, subscription_id | Gets a list of VersionedTemplate. Gets a list of VersionedTemplate. | |
generate | exec | template_name, template_version, subscription_id | Generates a VersionedTemplate. Generates a VersionedTemplate. |
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. |
template_version | string | The template version. Required. |
SELECT examples
- get
- list
Gets a VersionedTemplate. Gets a VersionedTemplate.
SELECT
id,
name,
parameters,
systemData,
templateType,
type,
version
FROM azure_extras.devhub.versioned_template
WHERE template_name = '{{ template_name }}' -- required
AND template_version = '{{ template_version }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Gets a list of VersionedTemplate. Gets a list of VersionedTemplate.
SELECT
id,
name,
parameters,
systemData,
templateType,
type,
version
FROM azure_extras.devhub.versioned_template
WHERE template_name = '{{ template_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Lifecycle Methods
- generate
Generates a VersionedTemplate. Generates a VersionedTemplate.
EXEC azure_extras.devhub.versioned_template.generate
@template_name='{{ template_name }}' --required,
@template_version='{{ template_version }}' --required,
@subscription_id='{{ subscription_id }}' --required
;