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_nameoptional computed - string -
descriptionoptional computed - string -
display_nameoptional computed - string -
idoptional computed - string -
locationrequired - string -
lock_exclude_principalsoptional - list of string -
lock_modeoptional - string -
namerequired - string -
parameter_valuesoptional - string -
resource_groupsoptional - string -
target_subscription_idrequired - string -
typeoptional computed - string -
version_idrequired - string -
identitylist block-
identity_idsrequired - list of string -
principal_idoptional computed - string -
tenant_idoptional computed - string -
typerequired - string
-
-
timeoutssingle 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.