Azure / Azure/azure-cli

Ability to filter on resource type for az group export

Open
#31,315 4 comments 0 reactions 1 assignee Assigned to @isra-fel View on GitHub
act-codegen-extensibility-squad act-identity-squad ARM Auto-Assign Azure Deployments customer-reported feature-request Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.