247-IT Guide
UPS alerts via Microsoft 365, Teams and SMS
Microsoft is turning off SMTP AUTH with a password and has already switched off the Office 365 connectors in Teams. As a result, many UPS alerts silently stop arriving. How to set up email, Teams and SMS so the alert gets through at the next power outage.
Why UPS alerts should be switched over now
Most UPS alerts run through Microsoft 365: as email via smtp.office365.com or as a
message in a Teams channel. Microsoft has changed the rules for both:
| Channel | What changes | Status |
|---|---|---|
| Email via SMTP AUTH with user name and password | Exchange Online is turning off Basic authentication for SMTP AUTH | disabled by default for existing tenants from end of December 2026, admins can re-enable it for now; final removal to be announced in 2027 |
| Teams via “Incoming Webhook” (Office 365 connector) | Office 365 connectors in Teams have been switched off | out of service since May 2026, replaced by webhooks via the Workflows app |
The catch: an alert that no longer arrives is only noticed at the next power outage. So check now which route your UPS alerts take.
Email through Microsoft 365 without SMTP AUTH
For services that send mail without a signed-in user there are three clean routes:
- Microsoft Graph with an application permission — an app registration in Entra ID with a client secret or certificate sends via
/users/{sender}/sendMail. Without restriction it may send as any mailbox, so restricting it to the sender mailbox is part of the setup (see below). - Microsoft Graph with a delegated permission — an account signs in once with a device code, after which the software sends on its behalf. No tenant-wide application permission is needed.
- Own mail server or SMTP relay — an on-premises Exchange or a relay on the network accepts and delivers the mail. Only sensible if such a system exists anyway.
For the application permission, Microsoft now recommends RBAC for Applications in Exchange Online instead of the older application access policies. With it, the app may only send from one specific mailbox:
# Exchange Online PowerShell (Connect-ExchangeOnline), Organization Management role
# 1. Pointer to the app registration (IDs from Entra ID, Enterprise applications)
New-ServicePrincipal -AppId <app ID> -ObjectId <object ID> -DisplayName "UPS alerts"
# 2. Scope: only the sender mailbox
New-ManagementScope -Name "UPS sender" `
-RecipientRestrictionFilter "PrimarySmtpAddress -eq 'ups-alerts@contoso.com'"
# 3. Mail.Send for this scope only
New-ManagementRoleAssignment -App <app ID> -Role "Application Mail.Send" `
-CustomResourceScope "UPS sender"
# 4. Verify
Test-ServicePrincipalAuthorization -Identity <app ID> -Resource ups-alerts@contoso.com
Important: do not also grant Mail.Send in Entra ID. Permissions from
both systems add up, and the Entra permission applies to every mailbox. Role changes take 30 minutes
to 2 hours to take effect, depending on caching.
Teams alerts via a Workflows webhook
- Create the workflow — in the Teams channel, open “Workflows” and choose the template that posts to a channel when a webhook request is received.
- Copy the URL — after saving, the workflow shows a webhook URL. It is a secret: anyone who knows it can post to the channel.
- Enter it in the software — the message arrives in the channel as an Adaptive Card.
Two points that are often overlooked: the workflow runs on behalf of the person who created it. If they leave the company and their account is deleted, the alerts stop. Create the workflow with a service account or add further owners. And old webhook URLs of the Office 365 connectors no longer work; they must be replaced with the new URL.
SMS, webhook and the second channel
During a power outage, alerting runs through the devices that still have power. If the router and firewall are not on the UPS, no alert leaves the building, whatever the channel. So first check that the internet connection is on the UPS.
- SMS — gets through even when nobody looks at email or Teams, at night for example. The software sends it through an SMS service over HTTPS, so the internet connection has to be up.
- Webhook — for everything else: n8n, Power Automate, ticket systems or on-call services.
- SNMP trap — for the existing monitoring on your own network, with no internet at all.
A second channel for the most important events has proven itself: email for everything, plus SMS or Teams for power loss and shutdown.
Alert channels in the UPS Hyper-V Shutdown Monitor
| Channel | Implementation | Edition |
|---|---|---|
| Email through Microsoft 365 | Microsoft Graph with an application permission (client secret) or delegated via device code sign-in | all |
| Email through your own mail server | SMTP with STARTTLS or SSL | all |
| SNMP trap | in UPS-MIB format (RFC 1628) | all |
| Teams | Workflows webhook with Adaptive Card | Pro |
| SMS | via seven.io | Pro |
| Webhook | JSON over HTTPS, optionally with a custom header | Pro |
Events include power loss, low battery, start of the shutdown, power return, an unreachable UPS and a required battery replacement. Every channel has a test function.
UPS alert checklist
- No SMTP AUTH with a password — switched to Graph for Microsoft 365.
- Application permission restricted — Mail.Send for the sender mailbox only.
- Client secret expiry date — in the calendar, with a reminder before it expires.
- Teams via Workflows — with a service account or several owners.
- Router and firewall on the UPS — otherwise no alert leaves the building during a power outage.
- Test alert — triggered regularly over every channel, and received.
Frequently asked questions
Does SMTP with user name and password still work with Microsoft 365?
For now, yes. According to Microsoft, Basic authentication for SMTP AUTH will be disabled by default for existing tenants from the end of December 2026; admins can still re-enable it then. Microsoft plans to announce the final removal date in 2027. For services, Microsoft Graph is the better route.
Why don't my Teams alerts arrive any more?
The alert probably went through an incoming webhook of the Office 365 connectors. Microsoft switched these off in May 2026. The replacement is a webhook via the Workflows app in Teams.
How do I prevent the app from sending mail as any mailbox?
With RBAC for Applications in Exchange Online: assign the Application Mail.Send role only for a scope containing the sender mailbox, and do not also grant Mail.Send in Entra ID.
Does the alert get out at all during a power outage?
Only if the router, firewall and any switches in between are on the UPS. Otherwise only an alert inside your own network remains, such as an SNMP trap to monitoring on the same UPS.
More guides
Event IDs for your SIEM
Event log, Sentinel, Splunk and PowerShell.
Monitoring branch office UPS centrally
One installation, many sites, alert-only per UPS.
UPS in PRTG, Zabbix and Prometheus
Health endpoint, token and alert rules.
Hyper-V on Server Core
Protecting hosts without a desktop via WinRM or a web interface.
UPS shutdown via PowerShell script
Ten weak spots that only show up in a real outage.
CyberPower and Riello for Hyper-V
PowerPanel Business and PowerShield³ compared.
Replacing UPS batteries
Ageing, warning signs and swapping without a protection gap.
Restarting after a power outage
Starting servers, storage and VMs automatically when power returns.
Eaton IPM alternative for Hyper-V
Node licensing, editions and Hyper-V integration compared.
Shutting down Hyper-V VMs in a power outage
Stop action, shutdown order and time budget for an orderly shutdown.
SNMPv3 on a UPS network card
authPriv with SHA and AES instead of a plain-text community.
NUT on Windows
Query a UPS via Network UPS Tools from a NAS or Linux server.
Hyper-V failover cluster power outage
Coordinating quorum, CSV and live migration.
Active Directory & power outages
The USN rollback myth and the real risks for domain controllers.
SQL Server & Exchange on Hyper-V
Protecting databases during a power outage.
Calculating UPS runtime
Why the datasheet runtime rarely holds.
PowerChute alternative for Hyper-V
UPS shutdown without vendor lock-in.
Monitoring UPS units from multiple vendors
One tool instead of several silos.
Alerts that arrive during a power outage
30 days free, every feature included. Email via Microsoft Graph, Teams via Workflows, SMS and webhook, each with a test function.