Set assignment_scope on a policy definition #116
-
I am trying to assign a policy definition to a subscription/ resource. How do I do that? Which variable is used to set the the scope on a policy definition? module "log_analytics_workspace_sb" { |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @AnshuBhatiaGit, you should use the |
Beta Was this translation helpful? Give feedback.
-
Thanks Sadie that’s what I thought.
Anshu
…On Thu, Mar 13, 2025 at 5:38 AM Sadik Tekin ***@***.***> wrote:
Hi @AnshuBhatiaGit <https://github.com/AnshuBhatiaGit>, you should use
the def_assignment
<https://github.com/gettek/terraform-azurerm-policy-as-code/tree/main/modules/def_assignment>
module if you want to assign. The module README's contain all valid inputs
and outputs.
—
Reply to this email directly, view it on GitHub
<#116 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJGZF3OX35E3LLVZIZYPLOD2UFU4LAVCNFSM6AAAAABY33AJ6KVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENBYG4YTIOA>
.
You are receiving this because you were mentioned.Message ID:
<gettek/terraform-azurerm-policy-as-code/repo-discussions/116/comments/12487148
@github.com>
|
Beta Was this translation helpful? Give feedback.
Hi @AnshuBhatiaGit, you should use the
def_assignment
module if you want to assign. The module README's contain all valid inputs and outputs.