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

[Feature]: Allow New-AzPolicySetDefinition to read a template from github and deploy it #25508

Open
SvenSowa opened this issue Jul 11, 2024 · 0 comments
Labels
customer-reported feature-request This issue requires a new behavior in the product in order be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team.

Comments

@SvenSowa
Copy link

Description of the new feature

Today, the commandlet expects a part of the json of a Policy Set Definition. It should be possible to deploy the full json, as it can be viewed in the Azure Portal or downloaded from github (example: https://github.com/Azure/Enterprise-Scale/blob/main/src/resources/Microsoft.Authorization/policySetDefinitions/Deploy-Private-DNS-Zones.json). The REST api expects a full json as well.

Today (commandlet help):
image

Suggestion (taken from the REST API https://learn.microsoft.com/en-us/rest/api/policy/policy-set-definitions/create-or-update?view=rest-policy-2023-04-01&tabs=HTTP&tryIt=true&source=docs#code-try-0):
image

Proposed implementation details (optional)

Add a new parameter to the commandlet like "-RawPolicyDefinition" that allows the full json to be specified, just like you can download it from github or the Azure portal (Initiative Definition -> JSON) and then deploy it through the REST API today.
image

@SvenSowa SvenSowa added feature-request This issue requires a new behavior in the product in order be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Jul 11, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported needs-triage This is a new issue that needs to be triaged to the appropriate team. and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported feature-request This issue requires a new behavior in the product in order be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team.
Projects
None yet
Development

No branches or pull requests

1 participant