Skip to main content

Notification Alerts

A notification rule sends the alert types you pick to email recipients and webhook destinations. Open Settings > Notifications from the sidebar. Rules live on the Notification Rules card.

After each scan, not in real time

Rules are evaluated after every completed scan, scheduled or manual. How often you get alerts follows your scan schedule.

Permissions and prerequisites

  • View Notifications to see the page. Manage Notifications to add, edit, delete, toggle and test rules.
  • View Settings so the page can check email status. Without it, email is treated as not configured here.
  • At least one delivery channel: email set up, or an enabled webhook destination.

Notification Rules

Each row is one rule. The Recipients column shows email addresses and one badge per webhook destination. A disabled destination shows as (disabled), and a deleted one as Unknown destination. Use the Enabled toggle to turn a whole rule on or off, and the row icons to test, edit or delete it.

If email isn't ready, an amber banner links to the email settings. Rules with webhook destinations still deliver.

Last Send

Never sent
No scan has triggered the rule and no test has run.
Green check
Every attempted channel succeeded.
Amber triangle
Partially delivered: some channels succeeded and some failed. Hover to see which and why.
Red X
Every channel failed. Hover for the error.
Nothing sent
A test ran but there was no alert data to deliver.
Two rules with their most recent send results: a green check for a successful send, a red X for a failure. Hover the X for the error.

Add or Edit a Rule

Click Add Notification, or the pencil on a row. Add Notification stays disabled until email is set up or at least one webhook destination is enabled.

Fields

Enabled
On by default. A disabled rule isn't sent after scans.
Name
Required.
Recipient Email(s)
Press Enter or comma to add an address, or paste several separated by commas. Recipients don't need StratoLens accounts.
Webhook Destinations
Tick the destinations to deliver to. A rule needs at least one recipient or destination. Disabled destinations can be ticked but won't deliver.
Subject
Required, even for webhook-only rules. Webhooks don't use it.
Body Text
Optional intro at the top of the email. Email only.
Filter
Optional. Click Configure Filter. See Filter.
Alert Types
Required. At least one of the 18 types.

In the Alert Types picker, click a type under Available to add it, and hover a selected type and click the left chevron to remove it. Drag the grip handle to reorder: the order sets the section order in the email. Types with a gear icon have settings, which open in a flyout beside the modal when you add or click the type.

One rule per audience

Use separate rules for separate audiences: one rule per team, each with its own filter, alert types and destinations.

The Add Notification Entry modal. Alert types are grouped in the Available column; click one to move it to Selected.
A selected alert type's Settings flyout opens beside the modal. Here, the Cost Anomalies minimum cost impact.

Alert Types

There are 18 alert types in two groups. Settings and their defaults are listed after each description.

Recommendations

These trigger on items that are new since the previous scan, or meaningfully changed where noted, and that pass the type's settings.

Cost Anomalies
Anomalies on newly seen resources and newly detected anomalies on existing ones. Minimum cost impact ($): default 0, which includes all anomalies.
Orphaned Resources
Newly detected orphaned or idle resources. No settings.
Sizing
New or meaningfully changed rightsizing recommendations. Resource Types: Virtual Machines, Managed Disks, App Service Plans; none selected means all. Hidden recommendations are excluded. Minimum data windows are set in Scanner Settings.
Access Optimizations
Newly detected unused, stale or over-privileged role assignments. No settings.
Subscription Quotas
New or changed vCPU quota usage above the threshold. Minimum utilization (%): 1 to 100, default 75. The flyout warns if this is below the scanner's own quota collection threshold, because no data exists below that level.
Commitment Coverage
New reservation and savings plan recommendations: purchase, underutilized or expiring. Min savings/mo ($): default 0, applies to purchase recommendations.
Security Recommendations
Newly detected insecure configurations and public exposure findings. Categories (Public Exposure, Insecure Configuration, Hardening, Identity, Governance) and Severities (Critical, High, Medium, Low); none selected means all. An item must match both.
Service Retirements
Newly detected Azure retirements affecting your resources. Type-level matches and Undated advisories (both off by default), Deadline (all, overdue, or the next 90, 180 or 365 days) and Impact (default all). Defaults match the Service Retirements page filters. Service Health events are always included regardless of impact.
Policy Exemption Expiration
Policy exemptions whose expiration date enters the warning window. Warn before expiration (days): 1 to 365, default 30. Notifies once per exemption per expiration date; extending the date re-arms it. Disabling the rule (or removing the type) and enabling it again re-sends every exemption currently in the window.

Change Tracking

These compare the scan with the previous scan, as in Change Tracking. Each has a Minimum changes setting, default 0 (any change). A section sends when added plus modified plus deleted items reach it. With a filter on the rule, the filtered count is used.

Resource Changes
Resources, subscriptions or resource groups added, modified or deleted between scans. Resource type ignore rules apply from the next scan after they are saved.
Defender Recommendation Changes
Defender for Cloud assessment changes.
Defender Plan Changes
Defender for Cloud plan enablement and settings changes.
Defender Vulnerability Changes
CVEs that appeared, were resolved, or changed their affected resources.
Defender Alerts
Defender for Cloud threat detection alert changes.
Advisor Recommendation Changes
Azure Advisor recommendation changes.
Policy Assignment Changes
Azure Policy assignment and exemption changes. Also has Change types: all changes, assignments only, or exemptions only.
Policy Compliance Changes
Azure Policy compliance state changes.
Activity Log Events
Azure Activity Log events that match your filters. Configured in its own window, see below.

Activity Log Events

Adding Activity Log Events opens the Configure Activity Log Events Alert window. Applystays disabled until you set at least one of Operations, Operation Types, Categories or Callers to Include. Callers to Exclude alone doesn't count.

Preset
Optional starting point that fills the fields below: RBAC Changes, AVD Autoscale Activity, Resource Deletions, NSG Rule Changes, Policy Exemptions or Key Vault Config Changes. Editing any field afterwards clears the preset.
Operations
Operation names, with * wildcards, for example Microsoft.Network/networkSecurityGroups/*. Suggestions come from recent activity.
Operation Types
Create, Update, Delete, Action, RBAC. Default all.
Categories
Administrative, Security, Policy. Default all. Service Health isn't offered.
Callers to Include / Exclude
Exact caller names, matched on sign-in name or display name. Use Exclude to drop an automation account.
Include failed operations
Off by default, which means succeeded operations only.
Minimum events to trigger
Default 0, which alerts on any matching event.
Match Preview
How many events would have matched in the last 24 hours, 7 days or 30 days, with top operations and callers. Based on activity collected through the last scan, and uses the rule's filter. Needs View Azure Activity Logs.
  • Each scan reports events since the rule last evaluated the activity log, so an event is never alerted twice. The first evaluation, after you add the type or re-enable the rule, looks back 24 hours.
  • The email lists the 20 newest matching events and links to Activity Explorer for that time window.
  • If one window has more than 250,000 matching events, the oldest aren't evaluated and the email says so.
  • Rarely, an event that Azure publishes late is never alerted.
The Activity Log Events window before any filter is set. Apply stays disabled until you add at least one filter dimension.

Filter

Configure Filter narrows every alert type in the rule. It has three sections, combined with AND; an empty section is ignored.

  • Scope: management groups, subscriptions and resource groups. A scope also matches everything beneath it.
  • Resource Types: resource types in your inventory.
  • Tags: tag key/value filters with their own AND/OR mode.
The filter window: a scope tree, resource types and tag filters, combined with AND.

Some alert types don't carry a resource type or tags. For those, that part of the filter is skipped rather than treated as no match, so they still fire on scope. Change-tracking types recount on the filtered set, and deleted resources are matched on the tags they had before deletion.

Filter dimensions each type honors

Scope, type and tags
Cost Anomalies, Orphaned Resources, Sizing, Security Recommendations, Service Retirements, Resource Changes, Defender Recommendation Changes, Advisor Recommendation Changes, Policy Compliance Changes, Activity Log Events
Scope and tags
Defender Alerts; Policy Exemption Expiration (tags only for resource-level exemptions)
Scope only
Access Optimizations, Subscription Quotas, Commitment Coverage, Defender Plan Changes, Policy Assignment Changes
Subscriptions only
Defender Vulnerability Changes. Management group and resource group selections never match.

A platform team rule

Resource Changes and Policy Assignment Changes, with the filter scoped to the Production management group, delivered to a Teams channel and the on-call mailbox.

Who Sees What

Rules send what their owner can see

Every rule runs under the current permissions and data scope of the person who last saved it, re-checked on every send. If that person loses access, the rule loses those sections too.

  • A section the owner can't view is left out. If every section is left out, nothing is sent.
  • If the owner's scope is limited to some subscriptions or management groups, every section is narrowed to it, on top of the rule's own filter.
  • If StratoLens can't verify the owner's access at send time, the rule is skipped and recorded as failed. It is never sent tenant-wide instead.
  • Rules created before this behavior existed have no recorded owner and send tenant-wide until someone edits and saves them.
  • Every recipient and destination on a rule gets the same content.

View permission per alert type

View Costs
Cost Anomalies, Commitment Coverage
View Resources
Orphaned Resources, Sizing, Access Optimizations, Subscription Quotas, Security Recommendations, Service Retirements, Resource Changes
View Defender Assessments
Defender Alerts, Defender Recommendation Changes, Defender Plan Changes, Defender Vulnerability Changes
View Advisor Recommendations
Advisor Recommendation Changes
View Policy Data
Policy Assignment Changes, Policy Compliance Changes, Policy Exemption Expiration
View Azure Activity Logs
Activity Log Events

What Gets Sent

  • A rule sends when at least one of its alert types triggers: one email, and one message per destination, per rule per scan. A rule with nothing triggered sends nothing, and Last Send doesn't change.
  • The email opens with a count per alert type and your Body Text, then one card per triggered type in picker order, with a short table and a View in StratoLens link. Change-tracking links open the Changes view with the two scans preselected.
  • Items you have hidden on Cost Anomalies, Access Optimization, Security Recommendations, Service Retirements and Sizing are left out.
  • Webhook destinations get the same items. Each channel is delivered independently; if email fails and a webhook succeeds, the send counts as partially delivered.
  • A failure in one rule doesn't stop other rules, and notification failures never affect scan results.

Send Test

The paper-plane icon on a row runs the rule now and delivers to all of its channels. It is disabled when none of the rule's channels can currently deliver. The banner lists each channel's result, and Last Send records the test. A test differs from a scheduled send:

  • It uses current data, treating current recommendations as new, so it shows everything that matches now.
  • Change-tracking types use the most recent scan pair, within the last 30 scans, that had changes of that type. If there is none, the email shows a placeholder card; webhooks skip placeholder sections.
  • It runs under your permissions and scope, not the rule owner's.
  • Policy Exemption Expiration shows every exemption in the window and doesn't mark them notified.
  • If nothing triggers, nothing is sent.

Tests can be much longer than real alerts

A test includes everything that currently matches, not only new items, so the test email can be far longer than a scheduled one.

Troubleshooting

Add Notification is disabled

Answer

Email isn't set up and there is no enabled webhook destination. Set up email or add a destination. If one exists, check that you have Manage Notifications.

An enabled rule sends nothing after scans

Answer

No alert type triggered: nothing was new, or the thresholds or filter removed everything. Run Send test to confirm delivery works, and check that the rule owner can still view those alert types.

Some sections are missing from the email

Answer

The person who last saved the rule lacks the view permission for those types, or the rule's filter or the owner's scope excludes those items. See Who Sees What.

Quota alerts never trigger

Answer

The rule's Minimum utilization is below the scanner's quota threshold, so no data exists at that level. Align the two in the rule and in Scanner Settings.

Last Send says "Email infrastructure not configured"

Answer

The rule has email recipients but email isn't set up. Complete Email Setup or remove the recipients.

A webhook shows "Destination disabled"

Answer

The destination is turned off, possibly auto-disabled after repeated failures. See Webhook Destinations.

The Activity Log Events Apply button is disabled

Answer

Set at least one of Operations, Operation Types, Categories or Callers to Include. Callers to Exclude alone isn't enough.

The Match Preview shows an error

Answer

The preview needs View Azure Activity Logs.

A test showed data but the scheduled email didn't

Answer

Tests treat current recommendations as new and run under your permissions. Scheduled sends only include items new since the previous scan, under the rule owner's permissions.

Was this page helpful?

Last updated October 27, 2026