general
743 TopicsFrom Inbox to Audit Trail: Automating Compliant Email Export with Purview, Sentinel, and Logic Apps
The problem: an AI agent that couldn't touch the mailbox When we architect systems for mission-critical enterprise environments, requirements that appear deceptively simple on paper often reveal the steepest operational cliffs. A customer approached us with a straightforward automation requirement: they were deploying an AI agent to triage incoming regulatory inquiry emails. These are high-consequence communications. They arrive in shared mailboxes, require a rapid operational response, and an audit trail designed to meet the organization's compliance and tamper-resistance requirements for internal and external regulatory review. The core design requirement was simple to state and surprisingly hard to satisfy: export the incoming emails to a SharePoint document library so the agent could work from a governed copy, rather than reaching into the mailbox directly. That requirement quickly hit a platform boundary. Across Microsoft 365, there is no native toggle or out-of-the-box workflow that bridges Exchange Online and SharePoint based on data sensitivity. Exchange Online handles transport; Microsoft Purview evaluates classification and policy compliance; Power Platform offers automation. Yet no single native capability provides the complete workflow: detect a qualifying inbound email, retrieve its MIME content, and store the resulting .eml file in SharePoint. Without a supported and repeatable solution, this requirement became a blocker for the AI initiative. Granting an automated agent broad mailbox permissions conflicted with the goal of least-privilege access. Alternatively, asking compliance officers to run periodic manual exports was unscalable and introduced unacceptable latency. To solve this, we designed an event-driven, three-tier architecture that classifies qualifying email, captures the resulting telemetry, retrieves the message's MIME representation, and stores it as an .eml file. The resulting design avoids scheduled mailbox polling, custodian-run export scripts, and stored application secrets. The architecture in brief The architecture uses three Microsoft cloud services, separating classification and detection from message retrieval and storage. The architecture does not depend on a custom-built service. Its value comes from how Microsoft Purview, Microsoft Sentinel, and Azure Logic Apps are connected, along with design choices such as managed identity, event-driven execution, and separate storage destinations that support operation in a regulated environment. End-to-end pipeline Let's walk through each stage. Stage 1 — Microsoft Purview auto-labeling & audit generation The process begins when Microsoft Purview auto-labeling evaluates qualifying Exchange Online email against the configured policy conditions. We scoped these policies to target sensitive communications originating from external regulatory sender domains. The policies define matching conditions: in this case, the sender domain. When an email matches, Purview applies a sensitivity label and writes an audit event to the Microsoft 365 unified audit log. That audit event, identified by ActionType = "AutoSensitivityLabelRuleMatch", provides the telemetry signal for the downstream workflow. By relying on an existing compliance signal generated by Microsoft 365, the design avoids introducing a separate mailbox-scanning mechanism or third-party journaling integration. Microsoft Sentinel can then detect the targeted activity through CloudAppEvents. This design explicitly tracks three separate auto-labeling policies, distinguished by policy ID: Note: Scoping detection to specific policy IDs narrows the query to the policies used by this workflow, excludes unrelated labeling activity, and makes detected events easier to correlate with their corresponding regulatory controls. Stage 2 — Microsoft Sentinel detection rule (KQL) The relevant activity is available in the CloudAppEvents advanced hunting table when the required Microsoft Defender for Cloud Apps and Microsoft 365 activity integration is configured. Microsoft Sentinel can query this telemetry through its Microsoft Defender XDR integration. A Sentinel analytics rule filters for the targeted auto-labeling activity, parses RawEventData, and projects the message and policy metadata required by the automation workflow. In this implementation, fields such as sender, recipients, subject, workload item ID, and policy details are extracted from RawEventData and its nested ExchangeMetaData value. Because audit payload schemas can evolve, validate these field paths against events in your own tenant before deploying the rule as-is. Sample KQL rule ```kusto // Sentinel Analytics Rule — AutoSensitivityLabelRuleMatch // Table : CloudAppEvents CloudAppEvents | where ActionType == "AutoSensitivityLabelRuleMatch" | where Application == "Microsoft Exchange Online" | extend RawData = parse_json(RawEventData) | where tostring(RawData.PolicyId) in ( "dcd0132b-7117-4466-8be9-880b5652e106", "a3900a77-0025-42e8-84b6-327de32cba6f", "0387080a-3861-45ab-84e1-4dee8d58490e" ) | extend ExchangeMeta = parse_json(tostring(RawData.ExchangeMetaData)) | extend MessageID = tostring(RawData.WorkLoadItemId) | extend Sender = tostring(ExchangeMeta.From) | extend Recipients = tostring(ExchangeMeta.To) | extend Subject = tostring(RawData.ItemName) | extend CC = tostring(ExchangeMeta.CC) | extend BCC = tostring(ExchangeMeta.BCC) | extend SentTime = todatetime(ExchangeMeta.Sent) | extend LabelName = tostring(RawData.LabelName) | extend LabelId = tostring(RawData.LabelId) | extend PolicyName = tostring(RawData.PolicyName) | extend PolicyId = tostring(RawData.PolicyId) | extend ExecutionRuleName = tostring(RawData.ExecutionRuleName) | extend Severity = tostring(RawData.Severity) | extend RuleMode = tostring(RawData.RuleMode) | project TimeGenerated, AccountId, AccountDisplayName, MessageID, Sender, Recipients, Subject, CC, BCC, SentTime, LabelName, LabelId, PolicyName, PolicyId, ExecutionRuleName, Severity, RuleMode ``` Two design decisions are worth emphasizing: Filter before parsing. Filtering on ActionType and Application before calling parse_json() reduces the number of records that require JSON processing. Deterministic entity mapping. Flattening and projecting these fields from RawEventData creates a predictable set of fields that can be mapped into the Sentinel alert and consumed by the Logic App. Map MessageID to the MailMessage entity's Internet Message ID so the Logic App receives an identifier it can use to locate the corresponding Microsoft Graph message before retrieving its MIME content. Stage 3 — Azure Logic Apps & automated EML extraction The automation layer is driven by Azure Logic Apps. A KQL-based Microsoft Sentinel analytics rule detects the targeted activity and generates a Sentinel alert. That alert invokes the Logic App through the Microsoft Sentinel alert trigger, providing the alert and its associated entities as input to the orchestration workflow. When no qualifying alerts are generated, the message-processing workflow does not execute, avoiding the recurring mailbox queries associated with scheduled polling. Once triggered, the Logic App uses the message metadata from the alert to resolve the corresponding message through Microsoft Graph. It then retrieves the message's MIME representation by calling the message endpoint with /$value. That MIME response can be stored with an .eml extension. For regulated communications, credential handling is a core design consideration. This architecture avoids stored client secrets for Microsoft Graph access. The Logic App uses its system-assigned managed identity and the Microsoft Graph application permissions required for the message retrieval operation. For production deployments, do not treat tenant-wide Mail.Read as the final least-privilege boundary. Constrain the application's mailbox scope using the Exchange Online application-access controls supported in your environment and grant only the Graph permissions required by the implementation. Storage architecture: where the emails land Each exported email is saved to two locations and organized by date. Azure Blob Storage supports the automation and storage workflow, while SharePoint provides the governed copy consumed by users and the AI solution. The naming structure is “Timestamp_ShortMessageIdentifier_SanitizedSenderAddress”. It provides a consistent naming convention that helps correlate the stored file with the message processed by the Sentinel alert and Logic App workflow. Date-partitioned folders keep both locations easy to browse, retire, or apply lifecycle or retention policy against. Why this closed the gap for the AI agent The original blocker was access: the AI agent needed a governed SharePoint-resident copy of qualifying regulatory email without receiving direct mailbox access. This pipeline provides that separation. The agent reads from LogicAppUploads/, where access can be controlled with standard SharePoint permissions and the organization's governance configuration. Only mail that enters the targeted Purview policy and Sentinel detection path is exported, so the agent's input is constrained by the same classification workflow used to identify the messages in the first place. One important distinction is that the stored .eml file and the SharePoint item have their own governance context. If the solution requires a SharePoint sensitivity label, retention label, immutable retention, or other records-management control on the exported copy, configure those controls explicitly rather than assuming the original email's Purview label is automatically transferred to the new file. Architectural takeaways for Mission Critical Deployments Use existing compliance signals where they meet the requirement. Purview auto-labeling can provide the event used to start downstream detection without introducing a separate mailbox-scanning service. Match the intended policy IDs. Explicit policy filtering keeps unrelated labeling activity out of the automation path and makes detections easier to audit. Prefer event-driven orchestration to mailbox polling. Triggering the workflow from detection activity avoids unnecessary mailbox queries and scheduled executions when there is no qualifying work. Avoid stored secrets for sensitive pipelines. A Logic App managed identity removes the need to store a client secret for Graph authentication. Combine it with the narrowest practical Graph permission and mailbox scope. Separate runtime storage from user-facing access when their requirements differ. Blob Storage and SharePoint can serve different consumers, but retention, immutability, permissions, and lifecycle requirements should be configured deliberately for each destination. When faced with a capability gap in enterprise architecture, the instinct is often to reach for a bespoke tool or write custom code. More often than not, the answer is already sitting on the board, scattered across services you likely already license and run. By aligning Purview’s classification engine, Sentinel’s event stream, and Logic Apps’ event-driven orchestration, we built a repeatable pattern that not only delivered the email artifact to the AI agent, but also gave the security and compliance team an unyielding architectural boundary. Sometimes the best solutions aren’t about reinventing the wheel; they’re simply about wiring the right signals together with intent.134Views0likes0CommentsCopilot cancel part of the conversation
Since lately last month Copilot cancels part of the conversation as soon as I switch to another window, or another chat, or simply do not type for a while. How can I fix it? And do you what's worst? Copilot itself write "I know it is frustating, since this happened to you everytime". I contacted the support but after wasting more than an hour asking me to prove it and repeating what i was writing about this issue they told me to start a conversation here! Anyone knows why or experienced the same issue? It does not depend on conversation length.Anyone figured out how to get rid of that bar that drops down from the top in Windows 365?
Hey folks, Bit of a random one, but it's been annoying me for a while. When I'm using my Windows 365 Cloud PC, there's a bar at the very top of the screen that keeps appearing whenever I move my mouse to the top edge. I think it's the connection/session control bar. I almost always run apps maximized, and every now and then I accidentally hit the top edge and that bar pops down. Not the end of the world, just irritating enough that I started wondering if there's a way to disable it completely. Has anyone found a setting, registry tweak, policy, or some hidden option to stop it from showing up? Or is it just something we're stuck with? I'm using Windows 365 through the Windows App. Thanks!57Views1like3CommentsProblemen seit dem letzten Copilot-/Edge-Update
Seit dem Copilot-/Edge-Update vor etwa zwei Wochen erscheint dauerhaft die Meldung "Ihr Copilot migriert zur neuen Erfahrung". Nach dem Anmelden auf dem PC werden die Chats vom Handy zunächst angezeigt. Sobald ich jedoch einen bestehenden Chat öffnen oder fortsetzen möchte, erscheint erneut die Migrationsmeldung. Die Migration wird seit zwei Wochen nicht abgeschlossen. Dasselbe Microsoft-Konto wird auf Handy und PC verwendet.Hacker destroyed my emails
Last July as I was boarding a plane and had no access to Wifi for 5 hours (worst nightmare ever), I realized someone hacked into my hotmail account. I had more than 20 years worth of emails there which is why I can't stray anywhere else. ANYWAY, the hacker wrote an email demanding money, and proceeded to lock me out of all of my apps and subscriptions... I couldn't do anything. He had forwarded everything to a different email and set up some rule. I finally was able to get back into my account on Microsoft but now I'm realizing I'm missing thousands of emails. I checked the rules, did all the troubleshooting steps etc. and anything prior to July 1, 2025 is just GONE. Can anyone help me recover these? I feel like they have to be on a server somewhere!136Views0likes1CommentI had interesting conversation with copilot. Asked it to test it’s internet retrieval functions.
It failed on all retrievals. and suggested to report the following: M365 Copilot web retrieval consistently fails with ExpiredWeb/internet retrieval from M365 Copilot is currently failing. Multiple independent retrieval attempts were tested, including web search and direct URL retrieval across Microsoft and non-Microsoft domains. All attempts consistently return Expired.The failure appears to occur at the retrieval/tool layer rather than at the destination website, because unrelated domains and different retrieval methods exhibit the same result.The Microsoft Cloud status page currently reports Copilot as operational, so this may be an unreported partial, regional, tenant-specific, or backend retrieval-service degradation.Repeated testing from the same Copilot session reproduces the problem consistently. I'd include 5 October 2026, 19:00GMT, your region/location, and screenshots of both Expired results and the Operational status if the reporting interface allows attachments.