Forum Discussion
Ravi Gupta
Jul 06, 2018Copper Contributor
How to export Azure Alert Rules (Log Analytics)
Hi, I am trying to export all rules (Enabled/Disabled) from Azure Portal using Get-AzureRMALertRule cmdlet, however, it is returning blank output. I have more than 10 Rules configured. Some are ...
David2075
Dec 09, 2019Copper Contributor
This is how i dumped my Rules.
$subid='mysubid'
$rsgname = 'myrsgname'
$wksname = 'myworkspacename'
armclient get /subscriptions/$subid/resourcegroups/$rsgname/providers/microsoft.insights/scheduledQueryRules/?api-version=2018-04-16