TemplateSpecVersion

Template Spec Version object. API Version: 2022-02-01.

Example Usage

TemplateSpecVersionsCreateUpdate

using System.Collections.Generic;
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 =
{
{ "$schema", "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#" },
{ "contentVersion", "1.0.0.0" },
{ "parameters", null },
{ "resources", new[] {} },
},
ResourceGroupName = "templateSpecRG",
TemplateSpecName = "simpleTemplateSpec",
TemplateSpecVersion = "v1.0",
});
});
package main
import (
"fmt"
resources "github.com/pulumi/pulumi-azure-native/sdk/go/azure/resources"
"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{
fmt.Sprintf("$schema"): "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
ContentVersion: "1.0.0.0",
Parameters: nil,
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

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:resources:TemplateSpecVersion v1.0 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0

Properties

Link copied to clipboard
val description: Output<String>?

Template Spec version description.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

An array of linked template artifacts.

Link copied to clipboard
val location: Output<String>

The location of the Template Spec Version. It must match the location of the parent Template Spec.

Link copied to clipboard
val mainTemplate: Output<Any>?

The main Azure Resource Manager template content.

Link copied to clipboard
val metadata: Output<Any>?

The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.

Link copied to clipboard
val name: Output<String>

Name of this resource.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

Type of this resource.

Link copied to clipboard
val uiFormDefinition: Output<Any>?

The Azure Resource Manager template UI definition content.

Link copied to clipboard
val urn: Output<String>