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
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
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
Parameters
-
blueprint_name
optional computed - string -
description
optional computed - string -
display_name
optional computed - string -
id
optional computed - string -
location
required - string -
lock_exclude_principals
optional - list of string -
lock_mode
optional - string -
name
required - string -
parameter_values
optional - string -
resource_groups
optional - string -
target_subscription_id
required - string -
type
optional computed - string -
version_id
required - string -
identity
list block-
identity_ids
required - list of string -
principal_id
optional computed - string -
tenant_id
optional computed - string -
type
required - string
-
-
timeouts
single block
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.