How to send email notification when a Maintenance Configuration Starts

Francesco 0 Reputation points
2025-10-07T15:39:15.55+00:00

Hi All,

I'd like to send out email notification when an Azure Update Manager - Maintenance Configuration Starts and Ends.

Did anyone have experience with that?

Ideally I'd like to send an email with the servers (A dynamic Scope configured using TAGS) affected by the maintenance

Best Regards,

Francesco

Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Suchitra Suregaunkar 4,045 Reputation points Microsoft External Staff Moderator
    2025-10-07T16:43:34.79+00:00

    Hello Francesco,

    Thank you for posting your query on Microsoft Q&A portal.

    Azure Update Manager doesn’t send email notifications by default when a Maintenance Configuration starts or ends, but you can implement this using Azure Alerts, Action Groups, Logic Apps, or Pre/Post Scripts.
    Below are the recommended approaches:

    • Use Azure Alerts + Action Groups:
    1. Navigate to Azure Update Manager in the portal.
    2. Under Monitoring, select New alert rule (Preview).
    3. Define the scope (subscriptions, resource groups, or dynamic scopes using tags).
    4. Configure conditions for:
      • Maintenance Start
      • Maintenance End

    Create an Action Group and add an Email action.

    • This sends notifications to specified recipients when the event occurs.

    Reference: https://learn.microsoft.com/en-us/azure/update-manager/manage-alertsupdate manager

    • Use Logic Apps for Custom Emails: If you want to include the list of affected servers:
      • Create a Logic App:
        • Trigger: Maintenance event or scheduled recurrence.
        • Actions:
          • Query VMs in the maintenance scope using tags.
          • Format the list of servers.
          • Send an email using the Office 365 connector.
      • Assign a Managed Identity with RBAC permissions to read VM details.
    • Pre/Post Scripts: Update Manager supports pre-event and post-event scripts:
    • Service Health Alerts for Planned Maintenance:
    • Dynamic Scope with Tags:
      • When creating the maintenance configuration, use Dynamic Scopes based on tags.
      • Ensure your Logic App or script references these tags to include the correct servers in the email body.

    If you have any further queries then please share us the below details:

    1. Are you currently using Azure SQL Managed Instances or Virtual Machines for these maintenance tasks?
    2. Have you set up any action groups in Azure for notifications yet?
    3. Do you have access to configure Azure Service Health alerts in your subscription?
    4. What specific details do you want to include in the email notifications aside from server names?

    Thanks,

    Suchitra.

    1 person found this answer helpful.
    0 comments No comments

  2. Francesco 0 Reputation points
    2025-10-08T07:58:07.0833333+00:00

    Hello Suchitra,

    Thank you for your answer. I'm having trouble finding the condition related with Maintenance Start Maintenance End configuring the alert rule.

    Could you please guide me?

    Best Regards,

    Francesco


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.