Forum Discussion
Fetch Log Analytics workspace alerts types configured in a csv using powershell
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
- SarthakChatterjeeAug 13, 2019Copper Contributor
I can see OperationalInsights having some cmdlets to cater to Log Analytics workspace for AzureRm module but not exactly able to pinpoint the cmdlet to use to fetch the alert types configured for a subscription.CliveWatson
https://docs.microsoft.com/en-us/powershell/module/azurerm.operationalinsights/?view=azurermps-6.13.0#operational_insights
- SarthakChatterjeeAug 13, 2019Copper Contributor
Hi Clive, Would it be possible for you to tell me the alias command for this in AzureRm modules as i have that presently installed in my server where i need to configure this?
- CliveWatsonAug 13, 2019Silver Contributor
Sorry I'm not familiar with those, maybe someone lease can help? This link might help?
- SarthakChatterjeeAug 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.