Microsoft.Resources templateSpecs/versions 2019-06-01-preview

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:

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(Azure.Bicep.Types.Concrete.AnyType)
  }
  tags: {
    {customized property}: 'string'
  }
}

TemplateSpecArtifact objects

Set the kind property to specify the type of object.

For template, use:

{
  kind: 'template'
  template: any(Azure.Bicep.Types.Concrete.AnyType)
}

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 = 1
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 =
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:

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 = 1
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 =
template The Azure Resource Manager template content. any

TemplateSpecVersionTags

Name Description Value

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"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    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 = 1
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 =
template The Azure Resource Manager template content. any

TemplateSpecVersionTags

Name Description Value