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:
- Navigate to Azure Update Manager in the portal.
- Under Monitoring, select New alert rule (Preview).
- Define the scope (subscriptions, resource groups, or dynamic scopes using tags).
- 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-alerts
- 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.
- Create a Logic App:
- Pre/Post Scripts: Update Manager supports pre-event and post-event scripts:
- Attach PowerShell scripts to your maintenance configuration:
- Query affected VMs by tag.
- Send an email via SMTP or Microsoft Graph API.
- This is useful for custom notifications and reporting.
- Reference: https://learn.microsoft.com/en-us/azure/update-manager/pre-post-scripts-overview?tabs=preevent
- Attach PowerShell scripts to your maintenance configuration:
- Service Health Alerts for Planned Maintenance:
- Configure Azure Service Health alerts for planned maintenance events.
- These alerts can notify you via email or webhook when maintenance begins and ends.
- Combine with tags for resource-specific notifications.
- Reference: https://docs.azure.cn/en-us/azure-sql/managed-instance/advance-notifications
- 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:
- Are you currently using Azure SQL Managed Instances or Virtual Machines for these maintenance tasks?
- Have you set up any action groups in Azure for notifications yet?
- Do you have access to configure Azure Service Health alerts in your subscription?
- What specific details do you want to include in the email notifications aside from server names?
Thanks,
Suchitra.