Email Reports#
Automated email reports sent to administrators showing MFA rollout progress.
Overview#
A separate Logic App sends scheduled email reports to a configured list of recipients. Reports provide an executive summary of the MFA rollout status.
Report Contents#
Each email contains:
- Total Users — Complete count of all users in the rollout
- Completed — Users who have completed MFA enrollment
- Pending — Users who haven't completed yet
- Completion Rate — Percentage of users completed
- Quick Links — Direct links to SharePoint list and Upload Portal
Frequency Options#
| Option | Schedule |
|---|---|
| Daily | Every day at 9:00 AM |
| Weekly | Every Monday at 9:00 AM |
| Both | Daily and weekly reports |
Setup#
During Deployment#
When running 08-Deploy-Email-Reports.ps1, you'll be prompted for:
- Recipient email addresses (comma-separated)
- Frequency (Daily, Weekly, or Both)
Standalone Setup#
Configuration#
Settings in mfa-config.ini:
[EmailReports]
LogicAppName=logic-mfa-reports-123456
Recipients=admin1@domain.com,admin2@domain.com
Frequency=Day
Post-Setup: Authorise Connection#
Required
The Office 365 API connection must be authorised before reports will send.
- Go to Azure Portal → Resource Groups → your resource group
- Find the connection named office365-reports
- Click Edit API connection
- Click Authorize → Sign in with an account that can send mail
- Click Save
Testing#
Manual Test Run#
- Go to Azure Portal → Logic Apps
- Select your reports Logic App
- Click Run Trigger → Recurrence
- Check your inbox for the report
Check Run History#
- Open the Logic App in Azure Portal
- Click Overview
- View Run History for successful/failed runs
- Click any run to see the detailed execution flow
Changing Recipients#
- Edit
Recipientsinmfa-config.ini - Redeploy:
Changing Frequency#
- Edit
Frequencyinmfa-config.initoDayorWeek - Redeploy the reports Logic App