-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Ability to filter on resource type for az group export #31315
Description
Related command
az group export
Is your feature request related to a problem? Please describe.
I am considering use of PSRule to test against the Well-Architected Framework. When calling az group export to get a template to run PSRule against, I got an error about the export not able to be performed because there are more than 200 resources. I know that the reason in this case is that each hosted API has multiple alert rules. The alert rules would not matter to me as much for running PSRule.
Describe the solution you'd like
If I could filter to exclude alert rules (and maybe other resource types), I would be able to extract this particular template (and maybe others) and run PSRule against it. Perhaps there is a better approach to what I am doing, but being able to filter on a resource group this large may come in handy in other scenarios.
Describe alternatives you've considered
For my specific experimentation, I was able to get templates for the resources that I needed separately. This is not a scalable solution, though.
Additional context
I am an application security architect. I am using the aforementioned approach because I would not necessarily know fine-grained details about each resource but could certainly filter on which types I am most concerned about.