Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Remarks
For information about creating portal forms, see Tutorial: Create Azure portal forms for a template spec.
Bicep resource definition
The templateSpecs/versions resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Resources/templateSpecs/versions resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Resources/templateSpecs/versions@2019-06-01-preview' = {
parent: resourceSymbolicName
location: 'string'
name: 'string'
properties: {
artifacts: [
{
path: 'string'
kind: 'string'
// For remaining properties, see TemplateSpecArtifact objects
}
]
description: 'string'
template: any(...)
}
tags: {
{customized property}: 'string'
}
}
TemplateSpecArtifact objects
Set the kind property to specify the type of object.
For template, use:
{
kind: 'template'
template: any(...)
}
Property Values
Microsoft.Resources/templateSpecs/versions
Name | Description | Value |
---|---|---|
location | The location of the Template Spec Version. It must match the location of the parent Template Spec. | string (required) |
name | The resource name | string Constraints: Min length = 1 Max length = 90 Pattern = ^[-\w\._\(\)]+$ (required) |
parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: templateSpecs |
properties | Template Spec Version properties. | TemplateSpecVersionProperties (required) |
tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
TemplateSpecArtifact
Name | Description | Value |
---|---|---|
kind | Set to 'template' for type TemplateSpecTemplateArtifact. | 'template' (required) |
path | A filesystem safe relative path of the artifact. | string (required) |
TemplateSpecTemplateArtifact
Name | Description | Value |
---|---|---|
kind | The kind of artifact. | 'template' (required) |
template | The Azure Resource Manager template. | any (required) |
TemplateSpecVersionProperties
Name | Description | Value |
---|---|---|
artifacts | An array of Template Spec artifacts. | TemplateSpecArtifact[] |
description | Template Spec version description. | string Constraints: Max length = 4096 |
template | The Azure Resource Manager template content. | any |
TemplateSpecVersionTags
Name | Description | Value |
---|
ARM template resource definition
The templateSpecs/versions resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Resources/templateSpecs/versions resource, add the following JSON to your template.
{
"type": "Microsoft.Resources/templateSpecs/versions",
"apiVersion": "2019-06-01-preview",
"name": "string",
"location": "string",
"properties": {
"artifacts": [ {
"path": "string",
"kind": "string"
// For remaining properties, see TemplateSpecArtifact objects
} ],
"description": "string",
"template": {}
},
"tags": {
"{customized property}": "string"
}
}
TemplateSpecArtifact objects
Set the kind property to specify the type of object.
For template, use:
{
"kind": "template",
"template": {}
}
Property Values
Microsoft.Resources/templateSpecs/versions
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2019-06-01-preview' |
location | The location of the Template Spec Version. It must match the location of the parent Template Spec. | string (required) |
name | The resource name | string Constraints: Min length = 1 Max length = 90 Pattern = ^[-\w\._\(\)]+$ (required) |
properties | Template Spec Version properties. | TemplateSpecVersionProperties (required) |
tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
type | The resource type | 'Microsoft.Resources/templateSpecs/versions' |
TemplateSpecArtifact
Name | Description | Value |
---|---|---|
kind | Set to 'template' for type TemplateSpecTemplateArtifact. | 'template' (required) |
path | A filesystem safe relative path of the artifact. | string (required) |
TemplateSpecTemplateArtifact
Name | Description | Value |
---|---|---|
kind | The kind of artifact. | 'template' (required) |
template | The Azure Resource Manager template. | any (required) |
TemplateSpecVersionProperties
Name | Description | Value |
---|---|---|
artifacts | An array of Template Spec artifacts. | TemplateSpecArtifact[] |
description | Template Spec version description. | string Constraints: Max length = 4096 |
template | The Azure Resource Manager template content. | any |
TemplateSpecVersionTags
Name | Description | Value |
---|
Usage Examples
Terraform (AzAPI provider) resource definition
The templateSpecs/versions resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Resources/templateSpecs/versions resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Resources/templateSpecs/versions@2019-06-01-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
artifacts = [
{
path = "string"
kind = "string"
// For remaining properties, see TemplateSpecArtifact objects
}
]
description = "string"
template = ?
}
}
}
TemplateSpecArtifact objects
Set the kind property to specify the type of object.
For template, use:
{
kind = "template"
template = ?
}
Property Values
Microsoft.Resources/templateSpecs/versions
Name | Description | Value |
---|---|---|
location | The location of the Template Spec Version. It must match the location of the parent Template Spec. | string (required) |
name | The resource name | string Constraints: Min length = 1 Max length = 90 Pattern = ^[-\w\._\(\)]+$ (required) |
parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: templateSpecs |
properties | Template Spec Version properties. | TemplateSpecVersionProperties (required) |
tags | Resource tags | Dictionary of tag names and values. |
type | The resource type | "Microsoft.Resources/templateSpecs/versions@2019-06-01-preview" |
TemplateSpecArtifact
Name | Description | Value |
---|---|---|
kind | Set to 'template' for type TemplateSpecTemplateArtifact. | 'template' (required) |
path | A filesystem safe relative path of the artifact. | string (required) |
TemplateSpecTemplateArtifact
Name | Description | Value |
---|---|---|
kind | The kind of artifact. | 'template' (required) |
template | The Azure Resource Manager template. | any (required) |
TemplateSpecVersionProperties
Name | Description | Value |
---|---|---|
artifacts | An array of Template Spec artifacts. | TemplateSpecArtifact[] |
description | Template Spec version description. | string Constraints: Max length = 4096 |
template | The Azure Resource Manager template content. | any |
TemplateSpecVersionTags
Name | Description | Value |
---|