Troubleshooting#
Common Issues#
Logic App Emails Not Sending#
Symptom: Logic App runs succeed but no emails arrive.
Fix: Authorise the Office 365 API connection:
- Azure Portal → Resource Groups → your RG
- Find the
office365API connection - Edit API connection → Authorize → Sign in → Save
Tracking Link Returns 400 Error#
Symptom: Clicking the tracking link in the email shows a 400 Bad Request.
Possible causes:
-
Function code not deployed — Redeploy:
-
TrackingToken column not indexed — Update SharePoint schema:
-
Token not in SharePoint — Check the user's row has a
TrackingTokenvalue. If not:
MFA Status Not Updating#
Symptom: Users have registered MFA but status stays "Not Registered".
Fix: Check Logic App permissions:
The Logic App needs UserAuthenticationMethod.ReadWrite.All. If missing:
MFA Registration Date Not Populating#
Symptom: Status updates to "Active" but MFARegistrationDate is blank.
Fix: You're running an older Logic App template. Redeploy:
MSAL DLL Assembly Conflict#
Symptom: Error about Microsoft.Identity.Client assembly version when running permission scripts.
Fix: The v2 permission scripts use az rest instead of the Microsoft.Graph module. Ensure you're running scripts from the v2\ folder:
Function App Managed Identity Token Error#
Symptom: Function App logs show errors getting Managed Identity tokens.
Fix: The v2 function code supports both the new IDENTITY_ENDPOINT (Azure Functions v4) and legacy MSI_ENDPOINT. Redeploy:
SharePoint List Not Found#
Symptom: Function App or Logic App can't find the SharePoint list.
Check:
- Verify
ListIdinmfa-config.inimatches the actual list GUID - Verify
SiteUrlis correct - Ensure Managed Identity has
Sites.ReadWrite.Allpermission
Upload Portal Authentication Error#
Symptom: Portal shows authentication error on login.
Check:
- App registration has correct redirect URIs (the portal URL)
- Admin consent has been granted for
User.ReadandSites.Read.All - The portal URL matches what's in the app registration
Diagnostic Scripts#
Check All Permissions#
Lists all current permissions and highlights any missing ones.
Generate Technical Summary#
Creates a file in logs\ with all resource IDs, object IDs, URLs, and troubleshooting commands.
Quick Fix (All Common Issues)#
Runs Function Auth fix, Graph Permissions fix, and Logic App Permissions fix in sequence.
Getting Help#
If you're stuck:
- Check the Logic App run history in Azure Portal for error details
- Check Application Insights for Function App errors
- Run
.\Create-TechnicalSummary.ps1and review the output - Check the
logs\folder for deployment logs