Forum Discussion
SarthakChatterjee
Aug 10, 2019Copper Contributor
Fetch Log Analytics workspace alerts types configured in a csv using powershell
Hello, I want to create a Powershell script to find the current configured alerts in a Azure subscription and save the data in a csv file. I am interested to get the "Alert Types" in my results f...
CliveWatson
Aug 12, 2019Silver Contributor
https://azure.microsoft.com/en-gb/updates/now-available-powershell-cmdlets-for-azure-monitor-metric-and-log-alerts/ sepcifically https://docs.microsoft.com/en-gb/powershell/module/az.monitor/get-azscheduledqueryrule?view=azps-2.5.0#code-try-3
Get-AzScheduledQueryRule -ResourceGroupName "fabrikamltdprod" | where {$_.Type}
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-log
SarthakChatterjee
Aug 12, 2019Copper Contributor
Can you give me any alias for this command in AzureRm modules? i don't have permission to install Az.Monitor in our central instance where i need to test this. Have AzureRm modules installed there already.