Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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