import * as pulumi from "@pulumi/pulumi"; /** * Manages a Template Deployment at the Tenant Scope. * * > **Note:** Deleting a Deployment at the Tenant Scope will not delete any resources created by the deployment. * * > **Note:** Deployments to a Tenant are always Incrementally applied. Existing resources that are not part of the template will not be removed. * * > **Note:** Tenant Template Deployments are always targeted at the Tenant in which the current User, Managed Identity, or Service Principal being used by Terraform is homed. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.core.getTemplateSpecVersion({ * name: "myTemplateForTenant", * resourceGroupName: "myResourceGroup", * version: "v0.1", * }); * const exampleTenantTemplateDeployment = new azure.core.TenantTemplateDeployment("example", { * name: "example", * location: "West Europe", * templateSpecVersionId: example.then(example => example.id), * }); * ``` * * ## Import * * Tenant Template Deployments can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:core/tenantTemplateDeployment:TenantTemplateDeployment example /providers/Microsoft.Resources/deployments/deploy1 * ``` */ export declare class TenantTemplateDeployment extends pulumi.CustomResource { /** * Get an existing TenantTemplateDeployment resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: TenantTemplateDeploymentState, opts?: pulumi.CustomResourceOptions): TenantTemplateDeployment; /** * Returns true if the given object is an instance of TenantTemplateDeployment. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is TenantTemplateDeployment; /** * The Debug Level which should be used for this Resource Group Template Deployment. Possible values are `none`, `requestContent`, `responseContent` and `requestContent, responseContent`. */ readonly debugLevel: pulumi.Output; /** * The Azure Region where the Template should exist. Changing this forces a new Template to be created. */ readonly location: pulumi.Output; /** * The name which should be used for this Template. Changing this forces a new Template to be created. */ readonly name: pulumi.Output; /** * The JSON Content of the Outputs of the ARM Template Deployment. */ readonly outputContent: pulumi.Output; /** * The contents of the ARM Template parameters file - containing a JSON list of parameters. */ readonly parametersContent: pulumi.Output; /** * A mapping of tags which should be assigned to the Template. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The contents of the ARM Template which should be deployed into this Resource Group. Cannot be specified with `templateSpecVersionId`. */ readonly templateContent: pulumi.Output; /** * The ID of the Template Spec Version to deploy. Cannot be specified with `templateContent`. */ readonly templateSpecVersionId: pulumi.Output; /** * Create a TenantTemplateDeployment resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: TenantTemplateDeploymentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TenantTemplateDeployment resources. */ export interface TenantTemplateDeploymentState { /** * The Debug Level which should be used for this Resource Group Template Deployment. Possible values are `none`, `requestContent`, `responseContent` and `requestContent, responseContent`. */ debugLevel?: pulumi.Input; /** * The Azure Region where the Template should exist. Changing this forces a new Template to be created. */ location?: pulumi.Input; /** * The name which should be used for this Template. Changing this forces a new Template to be created. */ name?: pulumi.Input; /** * The JSON Content of the Outputs of the ARM Template Deployment. */ outputContent?: pulumi.Input; /** * The contents of the ARM Template parameters file - containing a JSON list of parameters. */ parametersContent?: pulumi.Input; /** * A mapping of tags which should be assigned to the Template. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The contents of the ARM Template which should be deployed into this Resource Group. Cannot be specified with `templateSpecVersionId`. */ templateContent?: pulumi.Input; /** * The ID of the Template Spec Version to deploy. Cannot be specified with `templateContent`. */ templateSpecVersionId?: pulumi.Input; } /** * The set of arguments for constructing a TenantTemplateDeployment resource. */ export interface TenantTemplateDeploymentArgs { /** * The Debug Level which should be used for this Resource Group Template Deployment. Possible values are `none`, `requestContent`, `responseContent` and `requestContent, responseContent`. */ debugLevel?: pulumi.Input; /** * The Azure Region where the Template should exist. Changing this forces a new Template to be created. */ location?: pulumi.Input; /** * The name which should be used for this Template. Changing this forces a new Template to be created. */ name?: pulumi.Input; /** * The contents of the ARM Template parameters file - containing a JSON list of parameters. */ parametersContent?: pulumi.Input; /** * A mapping of tags which should be assigned to the Template. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The contents of the ARM Template which should be deployed into this Resource Group. Cannot be specified with `templateSpecVersionId`. */ templateContent?: pulumi.Input; /** * The ID of the Template Spec Version to deploy. Cannot be specified with `templateContent`. */ templateSpecVersionId?: pulumi.Input; }