TemplateSpecVersion

class TemplateSpecVersion : KotlinCustomResource

Template Spec Version object. Uses Azure REST API version 2022-02-01. In version 2.x of the Azure Native provider, it used API version 2022-02-01. Other available API versions: 2021-03-01-preview, 2021-05-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native resources [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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

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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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
val pulumiChildResources: Set<KotlinResource>
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>