TemplateSpec

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

Example Usage

TemplateSpecsCreateUpdate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var templateSpec = new AzureNative.Resources.TemplateSpec("templateSpec", new()
{
Description = "A very simple Template Spec",
Location = "eastus",
ResourceGroupName = "templateSpecRG",
TemplateSpecName = "simpleTemplateSpec",
});
});
package main
import (
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.NewTemplateSpec(ctx, "templateSpec", &resources.TemplateSpecArgs{
Description: pulumi.String("A very simple Template Spec"),
Location: pulumi.String("eastus"),
ResourceGroupName: pulumi.String("templateSpecRG"),
TemplateSpecName: pulumi.String("simpleTemplateSpec"),
})
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.TemplateSpec;
import com.pulumi.azurenative.resources.TemplateSpecArgs;
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 templateSpec = new TemplateSpec("templateSpec", TemplateSpecArgs.builder()
.description("A very simple Template Spec")
.location("eastus")
.resourceGroupName("templateSpecRG")
.templateSpecName("simpleTemplateSpec")
.build());
}
}

Import

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

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

Properties

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

Template Spec description.

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

Template Spec display name.

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

The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations.

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

The Template Spec 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 urn: Output<String>
Link copied to clipboard

High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'.