How we can disable Azure alerts before deployments and enable after deployment?

Anuj Singh 30 Reputation points
2023-09-13T07:22:46.7033333+00:00

Hello team,

How we can enable and disable Azure alerts that are log analytics-based query from Automation runbook. We wanted to disable all alerts before deployments and enable after deployment.

Thanks & Regards
Anuj Singh

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,663 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 28,596 Reputation points MVP Volunteer Moderator
    2023-09-13T08:45:04.4966667+00:00

    Hi,

    The question is very general so I would provide general answer. You can use various automation tools to disable them. For example if you use Azure PowerShell cmdlet Update-AzScheduledQueryRule contains parameter -Enabled that you can use to enable or disable the alert rule.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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