Skip to content

Instantly share code, notes, and snippets.

@ehrnst
Last active November 14, 2017 16:29
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/ac108bbe79eccc4f30a4f863ea306b94 to your computer and use it in GitHub Desktop.
Save ehrnst/ac108bbe79eccc4f30a4f863ea306b94 to your computer and use it in GitHub Desktop.
Azure monitor rest API powershell
$alertRules = Invoke-RestMethod -Method GET "https://management.azure.com/subscriptions/$SubscriptionId/resourcegroups/$ResourceGroupName/providers/microsoft.insights/alertrules?api-version=2016-03-01" -Headers $authHeader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment