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

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()
.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());
}
}

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
fun SubscriptionTemplateDeploymentArgs(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)

Functions

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

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.