-
Notifications
You must be signed in to change notification settings - Fork 190
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
Azure Policy Support for Definitions and Assignments #550
Comments
There is an option: |
That's fantastic to hear that role assignments are supported! When I mention Azure Policy assignments, I'm referring to a global resource that helps to enforce organizational standards and to assess compliance at-scale. Through its compliance dashboard, it provides an aggregated view to evaluate the overall state of the environment. https://learn.microsoft.com/en-us/azure/governance/policy/overview |
@Pbolkun I'm sorry to mix the role vs policy.. The policy assignment/definition can be exported by the You can get the list of those ids via
In order to export a bunch of assignments and definitions, you can construct a rseource map file, then fed it to Idealy, it helps if the |
@magodo while a list of resources like #552 helped me, it would also be great to have aztfexport query understand ARG queries fully. Tried using but it fails with the below error: `--------------------------------------------------------------------------------
|
@magodo what's the complexity of supporting copy-paste of preexisting ARG queries? I know that in this scenario we could just use the |
@stemaMSFT The reason to restrict the KQL is to avoid too flexible usage that might change the returned data format, which can breaks the assumption of the program. While I revisited the ARG tables, looks like the (default) Especially, for the Azure Policy resources asked in this thread, needs more thoughts:
|
It would be great if we could export Azure Policy Definition and Policy Assignments. When you use the
az definition show
andaz assignment show
commands with appropriate queries you can export the definitions, but to get those into HCL can be tedious. It especially becomes a problem when you attempt to export an entire initiative definition set.Look forward to seeing if there's any support here!
The text was updated successfully, but these errors were encountered: