SubscriptionTemplateDeploymentArgs

data class SubscriptionTemplateDeploymentArgs(val debugLevel: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val parametersContent: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val templateContent: Output<String>? = null, val templateSpecVersionId: Output<String>? = null) : ConvertibleToJava<SubscriptionTemplateDeploymentArgs>

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

Constructors

Link copied to clipboard
constructor(debugLevel: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, parametersContent: Output<String>? = null, tags: Output<Map<String, String>>? = null, templateContent: Output<String>? = null, templateSpecVersionId: Output<String>? = null)

Properties

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

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 location: Output<String>? = null

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>? = null

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 parametersContent: Output<String>? = null

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

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

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

Link copied to clipboard
val templateContent: Output<String>? = null

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

Link copied to clipboard
val templateSpecVersionId: Output<String>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): SubscriptionTemplateDeploymentArgs