Assign Policy parameters to builtin policies in an initiative #119
-
Is there an example how you can assign initiative parameters values to a custom initiative? I am having a hard time building a custom initiative with builit-in policies and assign initiative parameters value to each policy in that custom initiative. ** I am just referring the built-in policy names to create the initiative and don't have json files.** I am able to create custom initiative with built-in policies but cannot assign the initative parameters values for built-in policies Below is my code
The code gives me error
I would greatly appreciate if you can give me an example of setting initiative parameters, that would help me move forward. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 3 replies
-
An example can be found in the initiative module readme |
Beta Was this translation helpful? Give feedback.
-
Hi @gettek ,
|
Beta Was this translation helpful? Give feedback.
-
The initiative parameters are automatically created by the module, you only need to provide the definition resource node to The default value of each definition parameter will be used if none are provided to the |
Beta Was this translation helpful? Give feedback.
-
i understand that the initiative parameters are created by the module but if I want to set the default value of one of the initiative parameters in that initiative how do I do that? That's where I am facing issue. For eg. this policy "Configure diagnostic settings for Blob Services to Log Analytics workspace" has four parameters as below Name Profile name Name Log Analytics workspace Name Enable metrics Name Enable logs How do I set the Log Analytics workspace parameter value to "xxxxx" |
Beta Was this translation helpful? Give feedback.
-
Hi Sadik,
I am trying to achieve the same with Terraform code by implementing your code.
Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hi @gettek, Thanks, |
Beta Was this translation helpful? Give feedback.
-
I was able to figure out Thanks @gettek |
Beta Was this translation helpful? Give feedback.
-
Hi @gettek , |
Beta Was this translation helpful? Give feedback.
I was able to figure out Thanks @gettek