Skip to content

Is there an example/walkthrough on how to create a Policy Initiative with multiple entries for same member_definitions #67

Answered by pmatthews05
pmatthews05 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @gettek,
Thank you for getting back to me. I've found a way of doing what I wanted to do, using a combination of standard terraform code to create initiative, then used your set_assignment module.

data "azurerm_management_group" "management_group" {
  display_name = "Sandbox"
}
data "azurerm_policy_definition" "tags_inherit_a_tag_from_rg_definition" {
  display_name = "Inherit a tag from the resource group"
}
data "azurerm_role_definition" "contributor" {
  name = "Contributor"
}

resource "azurerm_policy_set_definition" "tags_inherit_a_tag_and_value_from_rg_initiative" {
  display_name        = "Inherits Tag from Resource Group"
  name                    = "Inherit_Tag_Management"
  p…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pmatthews05
Comment options

Answer selected by pmatthews05
Comment options

You must be logged in to vote
4 replies
@pmatthews05
Comment options

@dpb519
Comment options

@pmatthews05
Comment options

@dpb519
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants