Azure Blueprints Assignment

This page shows how to write Terraform for Blueprints Assignment and write them securely.

azurerm_blueprint_assignment (Terraform)

The Assignment in Blueprints can be configured in Terraform with the resource name azurerm_blueprint_assignment. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L60
resource "azurerm_blueprint_assignment" "example" {
  name                   = "testAccBPAssignment"
  target_subscription_id = data.azurerm_subscription.example.id
  version_id             = data.azurerm_blueprint_published_version.example.id
  location               = azurerm_resource_group.vm_group.location

main.tf#L55
resource "azurerm_blueprint_assignment" "example" {
  name                   = "testAccBPAssignment"
  target_subscription_id = data.azurerm_subscription.example.id
  version_id             = data.azurerm_blueprint_published_version.example.id
  location               = azurerm_resource_group.vm_group.location

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 Blueprint Assignment resource

NOTE: Azure Blueprints are in Preview and potentially subject to breaking change without notice.

NOTE: Azure Blueprint Assignments can only be applied to Subscriptions. Assignments to Management Groups is not currently supported by the service or by Terraform.

Azure Resource Manager Example

Azure Resource Manager code does not have the related resource.

Frequently asked questions

What is Azure Blueprints Assignment?

Azure Blueprints Assignment is a resource for Blueprints of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Blueprints Assignment?

For Terraform, the clivehine/terraform-wt and clivehine/terraform-wt source code examples are useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.