feature-requesthelp wantednot-plannedprovider/azure
Description
Feature search
- I have searched the existing issues and this feature has not been requested yet or is already in our Public Roadmap
Which component would this feature affect?
Prowler CLI/SDK
Related to specific cloud provider?
Azure
New feature motivation
At first thank you for the wonderful tool! I'd like to ask if it's possible to implement a simple switch for Azure scans that narrows down scans to a certain Resource Group. I often audit customers' Azure environments, but most often they request only one (or two) RGs to be validated, corresponding to the environment of some application - not entire Azure tenant/sub.
Solution Proposed
Adding a CLI arg for Azure scans like --resource-group group1 group2 that narrow searches to given RGs.
Use case and benefits
- Scans are faster, especially for large subscriptions.
- Scans consume less memory and disk, especially with Cloud Shell for large subscriptions.
- Scans are compliant with customer's scope ("Please audit only RG 'foo', 'bar' is out of scope").
Describe alternatives you've considered
For now I'm parsing JSON output with jq:
jq '.[] | select(.resources[].data.metadata.id|test("some-resource-group")?)' prowler-output-xxx.ocsf.json
Then load into my own simple HTML viewer. It does not, however, solve the problems described above in "use cases and benefits".
Additional context
No response