O365 Message Trace
Message Trace enables tenant administrators to track the lifecycle of an email, determine its delivery status (delivered, pending, failed, or quarantined), and understand the actions applied to it.
Analytics & SIEM · Microsoft Exchange Online
Configuration parameters
url— Server URL (required)tenant_id— Tenant IDcredentials_client_id—credentials—creds_certificate— Certificate Thumbprintredirect_uri— Application redirect URIauth_code—use_managed_identities— Use Azure Managed Identitiesmanaged_identities_client_id—insecure— Trust any certificate (not secure)proxy— Use system proxy settingsmax_fetch— Maximum number of events per fetchisFetchEvents— Fetch EventseventFetchInterval— Events Fetch Interval
Commands (4)
-
o365-message-trace-auth-resetClears the saved access token / refresh token from the integration context, so on the next run a fresh authorization code (or client-credentials token) is requested. Used to rerun the authentication process.
-
o365-message-trace-auth-testTests connectivity to Microsoft.
-
o365-message-trace-generate-login-urlGenerates the login URL for the authorization code flow.
-
o365-message-trace-get-eventsRetrieves Exchange Online Message Trace events. Use this command for development and debugging only, as it may produce duplicate events, exceed API rate limits, or disrupt the fetch mechanism.