TenantTemplateDeploymentArgs

data class TenantTemplateDeploymentArgs(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<TenantTemplateDeploymentArgs>

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.core.inputs.GetTemplateSpecVersionArgs;
import com.pulumi.azure.core.TenantTemplateDeployment;
import com.pulumi.azure.core.TenantTemplateDeploymentArgs;
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) {
final var exampleTemplateSpecVersion = CoreFunctions.getTemplateSpecVersion(GetTemplateSpecVersionArgs.builder()
.name("myTemplateForTenant")
.resourceGroupName("myResourceGroup")
.version("v0.1")
.build());
var exampleTenantTemplateDeployment = new TenantTemplateDeployment("exampleTenantTemplateDeployment", TenantTemplateDeploymentArgs.builder()
.location("West Europe")
.templateSpecVersionId(exampleTemplateSpecVersion.applyValue(getTemplateSpecVersionResult -> getTemplateSpecVersionResult.id()))
.build());
}
}

Import

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

$ pulumi import azure:core/tenantTemplateDeployment:TenantTemplateDeployment example /providers/Microsoft.Resources/deployments/deploy1

Constructors

Link copied to clipboard
fun TenantTemplateDeploymentArgs(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(): TenantTemplateDeploymentArgs

Properties

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

The Debug Level which should be used for this Resource Group 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 Template should exist. Changing this forces a new Template to be created.

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

The name which should be used for this Template. Changing this forces a new Template 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 Template.

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

The contents of the ARM Template which should be deployed into this Resource Group. Cannot be specified with template_spec_version_id.

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

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