-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assign policy to a managementgroup #2490
assign policy to a managementgroup #2490
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @lawrenae
Thanks for this PR - apologies for the delayed review here!
I've taken a look through and left some comments inline but this mostly LGTM - if we can fix up the comments (and the tests pass) this should otherwise be good to merge 👍
Thanks!
* remove else * update docs * separate setup method for management group policies * just pull management_group_id from the policy * rename to getPolicyDefinition * parse the managementgroupid from the id in deletes
@tombuildsstuff I've incorporated the feedback -- let me know what you think! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates @lawrenae, LGTM 👍
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
This pull request adds the ability to optionally define a policy on a management group level. The existing functionality -- define on a subscription or resource group is still intact.
I've done so by adding
management_group_id
toazurerm_policy_definition
. IE:btw,
azurerm_policy_assignment
will need no change to support this.Feedback most welcome -- this is my first PR for the azurerm terraform provider