Skip to content

Instantly share code, notes, and snippets.

@ehrnst
Created November 14, 2017 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehrnst/98807472d6c28d0fbd8366f1f23e14b3 to your computer and use it in GitHub Desktop.
Save ehrnst/98807472d6c28d0fbd8366f1f23e14b3 to your computer and use it in GitHub Desktop.
$Alert = $alertrules.id
(Invoke-RestMethod -Method GET "https://management.azure.com/$alert/incidents?api-version=$apiversion" -Headers $authHeader).value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment