Skip to content
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

How to add an object inside policySetDefinitions parameters #27

Open
bakharzy opened this issue Dec 8, 2023 · 0 comments
Open

How to add an object inside policySetDefinitions parameters #27

bakharzy opened this issue Dec 8, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bakharzy
Copy link

bakharzy commented Dec 8, 2023

Is your feature request related to a problem? Please describe.
Let's assume a policy have more than one parameter. We want to be able to set those parameters when deploying the policy (in Bicep). Is it possible to have all the parameters of a policy in one object defined in the parameters property of policySetDefinitions? If it's possible, how do we later set this object parameter in policyDefinitions?

Example:
This policy definition seems to have more than one parameter:
https://github.com/globalbao/azure-policy-as-code/blob/main/Bicep/demos/security-governance/deploy-sub-dev.bicep#L75

Currently, the parameters are hard-coded. How can we set those parameters when deploying (for example using parameters files). Please note that there might be several policies with parameters which have similar name. "Effect" is a common parameter name. That is the reason, I am looking for an object per policy.

@bakharzy bakharzy added the enhancement New feature or request label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants