Manages a Template Deployment at the Tenant Scope.
data "azurerm_template_spec_version" "example" {
name = "myTemplateForTenant"
resource_group_name = "myResourceGroup"
version = "v0.1"
}
resource "azurerm_tenant_template_deployment" "example" {
name = "example"
location = "West Europe"
template_spec_version_id = data.azurerm_template_spec_version.example.id
}
The following arguments are supported:
location
- (Required) The Azure Region where the Template should exist. Changing this forces a new Template to be created.
name
- (Required) The name which should be used for this Template. Changing this forces a new Template to be created.
debug_level
- (Optional) The Debug Level which should be used for this Resource Group Template Deployment. Possible values are none
, requestContent
, responseContent
and requestContent, responseContent
.
parameters_content
- (Optional) The contents of the ARM Template parameters file - containing a JSON list of parameters.
template_content
- (Optional) The contents of the ARM Template which should be deployed into this Resource Group. Cannot be specified with template_spec_version_id
.
template_spec_version_id
- (Optional) The ID of the Template Spec Version to deploy. Cannot be specified with template_content
.
tags
- (Optional) A mapping of tags which should be assigned to the Template.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Tenant Template Deployment.
output_content
- The JSON Content of the Outputs of the ARM Template Deployment.
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 3 hours) Used when creating the Tenant Template Deployment.read
- (Defaults to 5 minutes) Used when retrieving the Tenant Template Deployment.update
- (Defaults to 3 hours) Used when updating the Tenant Template Deployment.delete
- (Defaults to 3 hours) Used when deleting the Tenant Template Deployment.Tenant Template Deployments can be imported using the resource id
, e.g.
terraform import azurerm_tenant_template_deployment.example /providers/Microsoft.Resources/deployments/deploy1