An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
Hello sb-toryo-pjt,
Drawing from the official Microsoft documentation¹, I’ve outlined below the key insights and clarifications regarding the transition from the legacy Log Analytics Alert API to the Scheduled Query Rules API.
- Existing alert rules will not be automatically converted or carried over during the API migration. You must create or edit all alert rules using the Scheduled Query Rules API.
- Yes, Once the workspace is switched, you must manually recreate the alert rules using:
- Azure Resource Manager (ARM) templates
- PowerShell (
New-AzScheduledQueryRule) - Azure CLI
- No, they will not stop functioning immediately. Legacy rules will continue to work after the workspace is switched, but:
- You cannot edit them using the legacy API anymore.
- Microsoft has announced that the legacy API will be retired on October 1, 2025 https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-log-api-switch
- It is strongly recommended to recreate all rules using the new API before that date.
- Yes, metric rules and Action Group associations will also need to be reassigned during the recreation process.
If the provided solution works for your query, please do not forget to Accept the answer and Upvote it. this can be beneficial to other community members.it would be greatly appreciated and helpful to others.
Thanks