Share via

Clarification regarding alert rule recreation after migrating to Scheduled Query Rules API

sb-toryo-pjt 145 Reputation points
2025-06-24T00:06:49.0966667+00:00

Dear Azure Support Team,

I hope this message finds you well. We are currently considering migrating our Azure Monitor log alert rules from the legacy Log Analytics Alert API to the Scheduled Query Rules API.

The following documentation appears to suggest that all alert rules must be created or edited using the new API:

https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-log-api-switch

Please note that this message has been translated from Japanese using automated translation. I apologize if any parts are unclear.

To proceed safely, I would like to clarify the following points:

  1. Will existing alert rules be automatically converted or carried over during the API migration?
  2. If not, is manual recreation or deployment via template required for all existing alert rules?
  3. Once migrated, will legacy alert rules become invalid or stop functioning?
  4. Do metric rules and Action Group associations also need to be reassigned during recreation?

As this migration could significantly impact our operations, your guidance on the expected behavior and recommended best practices would be greatly appreciated.

Thank you in advance for your support.

Best regards,

Azure Monitor
Azure Monitor

An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.

0 comments No comments

Answer accepted by question author
  1. Vinod Pittala 6,410 Reputation points Microsoft External Staff Moderator
    2025-06-24T07:22:26.11+00:00

    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.

    1. 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.
    2. Yes, Once the workspace is switched, you must manually recreate the alert rules using:
      • Azure Resource Manager (ARM) templates
      • PowerShell (New-AzScheduledQueryRule)
      • Azure CLI
      There is no automated tool provided by Microsoft to convert legacy rules to the new format.
    3. No, they will not stop functioning immediately. Legacy rules will continue to work after the workspace is switched, but:
    4. 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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.