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

Update-AZSentinelIncident doesn't allow updating of older incidents #172

Open
bram-boer opened this issue Feb 16, 2021 · 1 comment
Open
Assignees
Labels
enhancement New feature or request inprogress

Comments

@bram-boer
Copy link

I'm cleaning up old incidents in my Sentinel environment; as it has alot of invalid incidents now i want to do this more efficient than through the GUI.
using Get-AZSentinelIncident I already ran into the issue that it didn't show all incidents in the environment; it seems capped at last 200. circumventing this using the -All switch combined with -CaseNumber this solved my problem.
however when i wanted then to update these ticket to actually close them i ran into the issue that the Update-AzSentinelIncident doesn't accept piping your incident number through, but that can be overcome, however then i noticed that UpdateAzSentinelIncident function actually performs a Get-AzSentinelIncident within its function; without the -All switch therefore limiting its affect again to the max 200 latest incidents.

this seems very unwanted behavior to me when working with incidents programmatically. i would like to perform my own filters instead of being limited by the function.

@pkhabazi pkhabazi self-assigned this Mar 2, 2021
@pkhabazi pkhabazi added the enhancement New feature or request label Mar 2, 2021
@pkhabazi
Copy link
Contributor

pkhabazi commented Mar 2, 2021

Hi @BubbaNL thanks for the feedback, I will update the function to also include -All switch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request inprogress
Projects
None yet
Development

No branches or pull requests

2 participants