Automated provisioning of log search alerts

Copper Contributor

Hi,

 

I am looking into automating the provisioning of alerts used in my application with the Azure python SDK or Monitor REST API.

I have been sucessful in doing this with the Metrics signal type (https://learn.microsoft.com/en-us/python/api/azure-mgmt-monitor/azure.mgmt.monitor.v2018_03_01.opera... but cannot find a way to do it with the log search signal type.

Is there a way to automate the provisioning of log search signal types with python or a REST API call?


Kind Regards,

Athi Dharma

1 Reply

@Rt2472095 

 

Scheduled Query Rules can be created using a REST API call:

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}?api-version=2021-08-01

 

Take a look at the Scheduled Query Rules documentation for more information.