hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.54k stars 4.61k forks source link

Azure Blueprint Definition #10082

Open timothytavarez opened 3 years ago

timothytavarez commented 3 years ago

Community Note

Description

We can create Blueprint Assignments and reference Blueprint Definitions with Terraform, but we can't actually create a Blueprint Definition with Terraform.

I'd like to propose/discuss the creation of a Blueprint Definition TF resource, as this would enable holistic creation/usage of blueprints using Terraform. Presently, we are required to first create Blueprint Definitions via some other method and then can reference them with TF.

image

Blueprints can contain Artifacts which can be Resource Groups, ARM templates, Policy, and Role Assignments.

New or Affected Resource(s)

Potential Terraform Configuration

A naïve example using nesting below just to generate discussion around potential mechanisms/solutions.

resource "azurerm_blueprint_definition" "blueprint" {

    name = "New-Blueprint"
    blueprint_version  = "1.0"
    scope_id = "/managementGroups/MyManagementGroup"

    resource "azurerm_resource_group" "rg_artifact" {
        name = "rg-blueprint-artifact"
        location = "eastus"
    }
}

References

webstean commented 3 months ago

Blueprints are going away Could the doco be update, saying this?