SubscriptionTemplateDeployment

class SubscriptionTemplateDeployment : KotlinCustomResource

Manages a Subscription Template Deployment.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.SubscriptionTemplateDeployment("example", {
name: "example-deployment",
location: "West Europe",
templateContent: ` {
"schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.Resources/resourceGroups",
"apiVersion": "2018-05-01",
"location": "West Europe",
"name": "some-resource-group",
"properties": {}
}
]
}
`,
});
import pulumi
import pulumi_azure as azure
example = azure.core.SubscriptionTemplateDeployment("example",
name="example-deployment",
location="West Europe",
template_content=""" {
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.Resources/resourceGroups",
"apiVersion": "2018-05-01",
"location": "West Europe",
"name": "some-resource-group",
"properties": {}
}
]
}
""")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.SubscriptionTemplateDeployment("example", new()
{
Name = "example-deployment",
Location = "West Europe",
TemplateContent = @" {
""$schema"": ""https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"",
""contentVersion"": ""1.0.0.0"",
""parameters"": {},
""variables"": {},
""resources"": [
{
""type"": ""Microsoft.Resources/resourceGroups"",
""apiVersion"": ""2018-05-01"",
""location"": ""West Europe"",
""name"": ""some-resource-group"",
""properties"": {}
}
]
}
",
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := core.NewSubscriptionTemplateDeployment(ctx, "example", &core.SubscriptionTemplateDeploymentArgs{
Name: pulumi.String("example-deployment"),
Location: pulumi.String("West Europe"),
TemplateContent: pulumi.String(` {
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.Resources/resourceGroups",
"apiVersion": "2018-05-01",
"location": "West Europe",
"name": "some-resource-group",
"properties": {}
}
]
}
`),
})
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.azure.core.SubscriptionTemplateDeployment;
import com.pulumi.azure.core.SubscriptionTemplateDeploymentArgs;
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 example = new SubscriptionTemplateDeployment("example", SubscriptionTemplateDeploymentArgs.builder()
.name("example-deployment")
.location("West Europe")
.templateContent("""
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.Resources/resourceGroups",
"apiVersion": "2018-05-01",
"location": "West Europe",
"name": "some-resource-group",
"properties": {}
}
]
}
""")
.build());
}
}
resources:
example:
type: azure:core:SubscriptionTemplateDeployment
properties:
name: example-deployment
location: West Europe
templateContent: |2
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.Resources/resourceGroups",
"apiVersion": "2018-05-01",
"location": "West Europe",
"name": "some-resource-group",
"properties": {}
}
]
}

Import

Subscription Template Deployments can be imported using the resource id, e.g.

$ pulumi import azure:core/subscriptionTemplateDeployment:SubscriptionTemplateDeployment example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/template1

Properties

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

The Debug Level which should be used for this Subscription Template Deployment. Possible values are none, requestContent, responseContent and requestContent, responseContent.

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

The Azure Region where the Subscription Template Deployment should exist. Changing this forces a new Subscription Template Deployment to be created.

Link copied to clipboard
val name: Output<String>

The name which should be used for this Subscription Template Deployment. Changing this forces a new Subscription Template Deployment to be created.

Link copied to clipboard
val outputContent: Output<String>

The JSON Content of the Outputs of the ARM Template Deployment.

Link copied to clipboard

The contents of the ARM Template parameters file - containing a JSON list of parameters.

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

A mapping of tags which should be assigned to the Subscription Template Deployment.

Link copied to clipboard
val templateContent: Output<String>

The contents of the ARM Template which should be deployed into this Subscription.

Link copied to clipboard

The ID of the Template Spec Version to deploy into the Subscription. Cannot be specified with template_content.

Link copied to clipboard
val urn: Output<String>