azure-native.resources.TemplateSpecVersion
Explore with Pulumi AI
Template Spec Version object.
Uses Azure REST API version 2022-02-01. In version 1.x of the Azure Native provider, it used API version 2022-02-01.
Other available API versions: 2019-06-01-preview.
Example Usage
TemplateSpecVersionsCreateUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var templateSpecVersion = new AzureNative.Resources.TemplateSpecVersion("templateSpecVersion", new()
    {
        Description = "This is version v1.0 of our template content",
        Location = "eastus",
        MainTemplate = new Dictionary<string, object?>
        {
            ["$schema"] = "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
            ["contentVersion"] = "1.0.0.0",
            ["parameters"] = new Dictionary<string, object?>
            {
            },
            ["resources"] = new[]
            {
            },
        },
        ResourceGroupName = "templateSpecRG",
        TemplateSpecName = "simpleTemplateSpec",
        TemplateSpecVersion = "v1.0",
    });
});
package main
import (
	resources "github.com/pulumi/pulumi-azure-native-sdk/resources/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := resources.NewTemplateSpecVersion(ctx, "templateSpecVersion", &resources.TemplateSpecVersionArgs{
			Description: pulumi.String("This is version v1.0 of our template content"),
			Location:    pulumi.String("eastus"),
			MainTemplate: pulumi.Any(map[string]interface{}{
				"$schema":        "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
				"contentVersion": "1.0.0.0",
				"parameters":     map[string]interface{}{},
				"resources":      []interface{}{},
			}),
			ResourceGroupName:   pulumi.String("templateSpecRG"),
			TemplateSpecName:    pulumi.String("simpleTemplateSpec"),
			TemplateSpecVersion: pulumi.String("v1.0"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.resources.TemplateSpecVersion;
import com.pulumi.azurenative.resources.TemplateSpecVersionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var templateSpecVersion = new TemplateSpecVersion("templateSpecVersion", TemplateSpecVersionArgs.builder()
            .description("This is version v1.0 of our template content")
            .location("eastus")
            .mainTemplate(Map.ofEntries(
                Map.entry("$schema", "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"),
                Map.entry("contentVersion", "1.0.0.0"),
                Map.entry("parameters", ),
                Map.entry("resources", )
            ))
            .resourceGroupName("templateSpecRG")
            .templateSpecName("simpleTemplateSpec")
            .templateSpecVersion("v1.0")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const templateSpecVersion = new azure_native.resources.TemplateSpecVersion("templateSpecVersion", {
    description: "This is version v1.0 of our template content",
    location: "eastus",
    mainTemplate: {
        $schema: "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
        contentVersion: "1.0.0.0",
        parameters: {},
        resources: [],
    },
    resourceGroupName: "templateSpecRG",
    templateSpecName: "simpleTemplateSpec",
    templateSpecVersion: "v1.0",
});
import pulumi
import pulumi_azure_native as azure_native
template_spec_version = azure_native.resources.TemplateSpecVersion("templateSpecVersion",
    description="This is version v1.0 of our template content",
    location="eastus",
    main_template={
        "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
        "contentVersion": "1.0.0.0",
        "parameters": {},
        "resources": [],
    },
    resource_group_name="templateSpecRG",
    template_spec_name="simpleTemplateSpec",
    template_spec_version="v1.0")
resources:
  templateSpecVersion:
    type: azure-native:resources:TemplateSpecVersion
    properties:
      description: This is version v1.0 of our template content
      location: eastus
      mainTemplate:
        $schema: http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#
        contentVersion: 1.0.0.0
        parameters: {}
        resources: []
      resourceGroupName: templateSpecRG
      templateSpecName: simpleTemplateSpec
      templateSpecVersion: v1.0
Create TemplateSpecVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TemplateSpecVersion(name: string, args: TemplateSpecVersionArgs, opts?: CustomResourceOptions);@overload
def TemplateSpecVersion(resource_name: str,
                        args: TemplateSpecVersionArgs,
                        opts: Optional[ResourceOptions] = None)
@overload
def TemplateSpecVersion(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        resource_group_name: Optional[str] = None,
                        template_spec_name: Optional[str] = None,
                        description: Optional[str] = None,
                        linked_templates: Optional[Sequence[LinkedTemplateArtifactArgs]] = None,
                        location: Optional[str] = None,
                        main_template: Optional[Any] = None,
                        metadata: Optional[Any] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        template_spec_version: Optional[str] = None,
                        ui_form_definition: Optional[Any] = None)func NewTemplateSpecVersion(ctx *Context, name string, args TemplateSpecVersionArgs, opts ...ResourceOption) (*TemplateSpecVersion, error)public TemplateSpecVersion(string name, TemplateSpecVersionArgs args, CustomResourceOptions? opts = null)
public TemplateSpecVersion(String name, TemplateSpecVersionArgs args)
public TemplateSpecVersion(String name, TemplateSpecVersionArgs args, CustomResourceOptions options)
type: azure-native:resources:TemplateSpecVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TemplateSpecVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TemplateSpecVersionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TemplateSpecVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TemplateSpecVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TemplateSpecVersionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var templateSpecVersionResource = new AzureNative.Resources.TemplateSpecVersion("templateSpecVersionResource", new()
{
    ResourceGroupName = "string",
    TemplateSpecName = "string",
    Description = "string",
    LinkedTemplates = new[]
    {
        new AzureNative.Resources.Inputs.LinkedTemplateArtifactArgs
        {
            Path = "string",
            Template = "any",
        },
    },
    Location = "string",
    MainTemplate = "any",
    Metadata = "any",
    Tags = 
    {
        { "string", "string" },
    },
    TemplateSpecVersion = "string",
    UiFormDefinition = "any",
});
example, err := resources.NewTemplateSpecVersion(ctx, "templateSpecVersionResource", &resources.TemplateSpecVersionArgs{
	ResourceGroupName: pulumi.String("string"),
	TemplateSpecName:  pulumi.String("string"),
	Description:       pulumi.String("string"),
	LinkedTemplates: resources.LinkedTemplateArtifactArray{
		&resources.LinkedTemplateArtifactArgs{
			Path:     pulumi.String("string"),
			Template: pulumi.Any("any"),
		},
	},
	Location:     pulumi.String("string"),
	MainTemplate: pulumi.Any("any"),
	Metadata:     pulumi.Any("any"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TemplateSpecVersion: pulumi.String("string"),
	UiFormDefinition:    pulumi.Any("any"),
})
var templateSpecVersionResource = new TemplateSpecVersion("templateSpecVersionResource", TemplateSpecVersionArgs.builder()
    .resourceGroupName("string")
    .templateSpecName("string")
    .description("string")
    .linkedTemplates(LinkedTemplateArtifactArgs.builder()
        .path("string")
        .template("any")
        .build())
    .location("string")
    .mainTemplate("any")
    .metadata("any")
    .tags(Map.of("string", "string"))
    .templateSpecVersion("string")
    .uiFormDefinition("any")
    .build());
template_spec_version_resource = azure_native.resources.TemplateSpecVersion("templateSpecVersionResource",
    resource_group_name="string",
    template_spec_name="string",
    description="string",
    linked_templates=[{
        "path": "string",
        "template": "any",
    }],
    location="string",
    main_template="any",
    metadata="any",
    tags={
        "string": "string",
    },
    template_spec_version="string",
    ui_form_definition="any")
const templateSpecVersionResource = new azure_native.resources.TemplateSpecVersion("templateSpecVersionResource", {
    resourceGroupName: "string",
    templateSpecName: "string",
    description: "string",
    linkedTemplates: [{
        path: "string",
        template: "any",
    }],
    location: "string",
    mainTemplate: "any",
    metadata: "any",
    tags: {
        string: "string",
    },
    templateSpecVersion: "string",
    uiFormDefinition: "any",
});
type: azure-native:resources:TemplateSpecVersion
properties:
    description: string
    linkedTemplates:
        - path: string
          template: any
    location: string
    mainTemplate: any
    metadata: any
    resourceGroupName: string
    tags:
        string: string
    templateSpecName: string
    templateSpecVersion: string
    uiFormDefinition: any
TemplateSpecVersion Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TemplateSpecVersion resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- TemplateSpec stringName 
- Name of the Template Spec.
- Description string
- Template Spec version description.
- LinkedTemplates List<Pulumi.Azure Native. Resources. Inputs. Linked Template Artifact> 
- An array of linked template artifacts.
- Location string
- The location of the Template Spec Version. It must match the location of the parent Template Spec.
- MainTemplate object
- The main Azure Resource Manager template content.
- Metadata object
- The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
- Dictionary<string, string>
- Resource tags.
- TemplateSpec stringVersion 
- The version of the Template Spec.
- UiForm objectDefinition 
- The Azure Resource Manager template UI definition content.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- TemplateSpec stringName 
- Name of the Template Spec.
- Description string
- Template Spec version description.
- LinkedTemplates []LinkedTemplate Artifact Args 
- An array of linked template artifacts.
- Location string
- The location of the Template Spec Version. It must match the location of the parent Template Spec.
- MainTemplate interface{}
- The main Azure Resource Manager template content.
- Metadata interface{}
- The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
- map[string]string
- Resource tags.
- TemplateSpec stringVersion 
- The version of the Template Spec.
- UiForm interface{}Definition 
- The Azure Resource Manager template UI definition content.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- templateSpec StringName 
- Name of the Template Spec.
- description String
- Template Spec version description.
- linkedTemplates List<LinkedTemplate Artifact> 
- An array of linked template artifacts.
- location String
- The location of the Template Spec Version. It must match the location of the parent Template Spec.
- mainTemplate Object
- The main Azure Resource Manager template content.
- metadata Object
- The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
- Map<String,String>
- Resource tags.
- templateSpec StringVersion 
- The version of the Template Spec.
- uiForm ObjectDefinition 
- The Azure Resource Manager template UI definition content.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- templateSpec stringName 
- Name of the Template Spec.
- description string
- Template Spec version description.
- linkedTemplates LinkedTemplate Artifact[] 
- An array of linked template artifacts.
- location string
- The location of the Template Spec Version. It must match the location of the parent Template Spec.
- mainTemplate any
- The main Azure Resource Manager template content.
- metadata any
- The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
- {[key: string]: string}
- Resource tags.
- templateSpec stringVersion 
- The version of the Template Spec.
- uiForm anyDefinition 
- The Azure Resource Manager template UI definition content.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- template_spec_ strname 
- Name of the Template Spec.
- description str
- Template Spec version description.
- linked_templates Sequence[LinkedTemplate Artifact Args] 
- An array of linked template artifacts.
- location str
- The location of the Template Spec Version. It must match the location of the parent Template Spec.
- main_template Any
- The main Azure Resource Manager template content.
- metadata Any
- The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
- Mapping[str, str]
- Resource tags.
- template_spec_ strversion 
- The version of the Template Spec.
- ui_form_ Anydefinition 
- The Azure Resource Manager template UI definition content.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- templateSpec StringName 
- Name of the Template Spec.
- description String
- Template Spec version description.
- linkedTemplates List<Property Map>
- An array of linked template artifacts.
- location String
- The location of the Template Spec Version. It must match the location of the parent Template Spec.
- mainTemplate Any
- The main Azure Resource Manager template content.
- metadata Any
- The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
- Map<String>
- Resource tags.
- templateSpec StringVersion 
- The version of the Template Spec.
- uiForm AnyDefinition 
- The Azure Resource Manager template UI definition content.
Outputs
All input properties are implicitly available as output properties. Additionally, the TemplateSpecVersion resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of this resource.
- SystemData Pulumi.Azure Native. Resources. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Type of this resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of this resource.
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Type of this resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of this resource.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Type of this resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of this resource.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- Type of this resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of this resource.
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- Type of this resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of this resource.
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Type of this resource.
Supporting Types
LinkedTemplateArtifact, LinkedTemplateArtifactArgs      
LinkedTemplateArtifactResponse, LinkedTemplateArtifactResponseArgs        
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:resources:TemplateSpecVersion v1.0 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0