azurermSubscriptionTemplateDeployment
Manages a Subscription Template Deployment.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.subscriptionTemplateDeployment.SubscriptionTemplateDeployment(
this,
"example",
{
location: "West Europe",
name: "example-deployment",
template_content:
' {\n "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",\n "contentVersion": "1.0.0.0",\n "parameters": {},\n "variables": {},\n "resources": [\n {\n "type": "Microsoft.Resources/resourceGroups",\n "apiVersion": "2018-05-01",\n "location": "West Europe",\n "name": "some-resource-group",\n "properties": {}\n }\n ]\n }\n',
}
);
Arguments Reference
The following arguments are supported:
-
location
- (Required) The Azure Region where the Subscription Template Deployment should exist. Changing this forces a new Subscription Template Deployment to be created. -
name
- (Required) The name which should be used for this Subscription Template Deployment. Changing this forces a new Subscription Template Deployment to be created.
-
debugLevel
- (Optional) The Debug Level which should be used for this Subscription Template Deployment. Possible values arenone
,requestContent
,responseContent
andrequestContent,ResponseContent
. -
templateContent
- (Optional) The contents of the ARM Template which should be deployed into this Subscription. -
templateSpecVersionId
- (Optional) The ID of the Template Spec Version to deploy into the Subscription. Cannot be specified withtemplateContent
. -
parametersContent
- (Optional) The contents of the ARM Template parameters file - containing a JSON list of parameters. -
tags
- (Optional) A mapping of tags which should be assigned to the Subscription Template Deployment.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
-
id
- The ID of the Subscription Template Deployment. -
outputContent
- The JSON Content of the Outputs of the ARM Template Deployment.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 3 hours) Used when creating the Subscription Template Deployment.read
- (Defaults to 5 minutes) Used when retrieving the Subscription Template Deployment.update
- (Defaults to 3 hours) Used when updating the Subscription Template Deployment.delete
- (Defaults to 3 hours) Used when deleting the Subscription Template Deployment.
Import
Subscription Template Deployments can be imported using the resourceId
, e.g.