Azure Template Subscription Template Deployment

This page shows how to write Terraform and Azure Resource Manager for Template Subscription Template Deployment and write them securely.

azurerm_subscription_template_deployment (Terraform)

The Subscription Template Deployment in Template can be configured in Terraform with the resource name azurerm_subscription_template_deployment. The following sections describe 1 example of how to use the resource and its parameters.

Example Usage from GitHub

iso_27001_blueprint.tf#L3
resource "azurerm_subscription_template_deployment" "terraform-iso" {
  name                = "terraform-iso-1"
  location         = "West Europe"

  template_content = <<TEMPLATE
{

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages a Subscription Template Deployment.

Microsoft.Resources/deployments (Azure Resource Manager)

The deployments in Microsoft.Resources can be configured in Azure Resource Manager with the resource name Microsoft.Resources/deployments. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

template.json#L6
            "type": "Microsoft.Resources/deployments",
            "apiVersion": "2018-02-01",
            "name": "pid-0b87316f-9d3a-427e-88cf-399fc4100b33",
            "properties": {
                "mode": "Incremental",
                "template": {
azuredeploy.json#L20
            "type": "Microsoft.Resources/deployments",
            "properties": {
            "mode": "Incremental",
            "templateLink": {
                "uri": "https://raw.githubusercontent.com/lnesdevops/sql16w16build/master/azuredeploy.json",
                "contentVersion": "1.0.0.0"
master.template.json#L53
            "type": "Microsoft.Resources/deployments",
            "properties": {
              "mode": "Incremental",
              "templateLink": {
                 "uri":"[concat(parameters('repoBaseUrl'), '/service.template.json')]",
                 "contentVersion":"1.0.0.0"
master.json#L17
      "type": "Microsoft.Resources/deployments",
      "properties": {
        "mode": "incremental",
        "templateLink": {
          "uri": "https://javaonazure.blob.core.windows.net/deployment/container-registry.json",
          "contentVersion": "1.0.0.0"
simple-nsg-scale-nested.json#L26
      "type": "Microsoft.Resources/deployments",
      "apiVersion": "2016-09-01",
      "properties": {
        "mode": "Incremental",
        "templateLink": {
          "uri": "[parameters('_artifactsLocation')]",
FullEnvironmentSetup.json#L93
            "type": "Microsoft.Resources/deployments",
            "apiVersion": "2014-04-01-preview",
            "properties": {
                "mode": "Incremental",
                "templateLink": {
                    "uri": "[concat(parameters('sharedTemplateUrl'), '/', variables('sqlServerAndDbTemplateFile'))]",

Frequently asked questions

What is Azure Template Subscription Template Deployment?

Azure Template Subscription Template Deployment is a resource for Template of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Template Subscription Template Deployment?

For Terraform, the FrankS77/terraform-examples source code example is useful. See the Terraform Example section for further details.

For Azure Resource Manager, the asafc64/AzureTicket, lnesdevops/vfRegression and Azure/azure-api-management-devops-resource-kit source code examples are useful. See the Azure Resource Manager Example section for further details.