Skip to main content
    Securem Advisory
    Back to the paired briefing
    WorksheetReviewed Nov 14, 2026

    Microsoft Foundry Agent Service Audit Config Worksheet

    Configuration worksheet for Microsoft Foundry Agent Service in HIPAA-affected workloads, covers diagnostic settings, Log Analytics workspace routing, trace content capture, guardrail logging, and the audit-log gaps that prevent regulator-grade evidence.

    Read the briefing

    When to run this, and who owns it

    Run this worksheet pre-production, before any Microsoft Foundry Agent Service workload that touches PHI is opened to clinicians, members, or downstream systems that route PHI back into the agent. Pilots that route real PHI are production for HIPAA purposes; the audit log has to be defensible from the first PHI-bearing request. On workloads we build ourselves, through our AI transformation practice, the worksheet is run before handover.

    The fill-in is owned jointly by the cloud platform lead (engineer who configures the Foundry resource, model deployments, Log Analytics workspace, and diagnostic settings) and the compliance lead (accountable for the §164.312(b) audit-control answer). A Securem partner, when the engagement has one, facilitates and writes the band determination. No single role completes it alone, that is the point.

    It does not replace legal review of the Microsoft BAA for the services in scope, and it does not replace Microsoft's own published compliance documentation for Microsoft Foundry, which moves.

    A note on names. Microsoft Foundry is the platform previously called Azure AI Foundry and, before that, Azure AI Studio. The agent service is Foundry Agent Service. The model catalog splits into Foundry Models sold by Azure, which include the Azure OpenAI models, and models from partners and community, which are sold under the partner's terms. Content filters are now called guardrails.

    Section A: BAA scope and subscription posture

    • Microsoft HIPAA BAA in force through the licensing agreement (it is part of the Product Terms and Data Protection Addendum, and there is no separate contract to sign): yes / no, agreement reference: ___
    • Counsel has confirmed the organization contracts with Microsoft as a covered entity or business associate: yes / no
    • In-scope services verified against the HIPAA BAA column of the Microsoft Azure Compliance Offerings document on the Service Trust Portal, date verified: ___
    • Foundry Agent Service and Foundry Models sold by Azure confirmed in scope as of that date: yes / no
    • Azure AI Search, Azure Cosmos DB, and Azure Storage (the standard agent setup dependencies) confirmed in scope as of that date: yes / no
    • Every model in the PHI path is a Foundry Model sold by Azure: yes / no. If a partner model such as Anthropic Claude is in the path, the partner's own BAA is executed: yes / no / not applicable
    • No preview feature in the PHI path (Microsoft excludes previews from its Core Online Services terms): yes / no, exceptions: ___
    • Region selection (primary): ___, confirmed US and on the approved Region list: yes / no
    • Geo-failover region: ___, confirmed US and on the approved Region list: yes / no
    • Deployment type for each model (Global Standard / Data Zone Standard / Standard / Provisioned): ___. Global deployments may process inference in any Azure region, Data Zone deployments stay inside the zone, Standard deployments stay in the chosen geography. Processing boundary acceptable for the workload: yes / no
    • Azure Policy assignment (Allowed locations, plus the Foundry model deployment policies) that prevents deployment outside the approved Region and model list: yes / no, assignment ID: ___
    • Resource lock (CanNotDelete) applied to the Foundry resource and the Log Analytics workspace: yes / no

    Section B: Model and guardrail coverage

    • Foundry project name(s) in scope: ___
    • Azure OpenAI model deployments in scope (deployment name, base model, version, deployment type): ___
    • Other Foundry Models sold by Azure in scope (Llama, Phi, Mistral, others, name and version): ___
    • Guardrails (formerly content filters, powered by Azure AI Content Safety) applied to every in-scope deployment and agent: yes / no
    • Guardrail events routed to the Log Analytics workspace named in Section C: yes / no
    • Prompt Shields enabled (user prompt attacks and indirect attacks): yes / no
    • Prompt-attack detection events logged with prompt content (subject to PHI handling): yes / no
    • Protected material detection (text and code) enabled where applicable: yes / no
    • Guardrail severity thresholds documented and reviewed: yes / no
    • Abuse monitoring posture recorded: default / modified abuse monitoring approved: ___. Under the default, flagged prompts and completions can be stored for human review by authorized Microsoft employees.

    Section C: Diagnostic settings

    • Diagnostic setting created on every in-scope Foundry resource: yes / no
    • Diagnostic setting created on every legacy Azure OpenAI resource still in use: yes / no
    • Destination = Log Analytics workspace (not just a Storage account or Event Hub): yes / no
    • Log Analytics workspace resource ID: ___
    • Categories enabled, Audit: yes / no
    • Categories enabled, RequestResponse: yes / no
    • Categories enabled, Trace: yes / no
    • Categories enabled, AzureOpenAIRequestUsage: yes / no
    • Categories enabled, ManagedNetworkEvent (where a managed virtual network is used): yes / no
    • Categories enabled, AllMetrics: yes / no
    • Sample query run to confirm what RequestResponse records in this tenant. Microsoft documents it as request and response records with status codes and latency, not as a prompt-content log: yes / no
    • Application Insights resource connected to the Foundry project so agent traces are stored (tracing does not start until it is connected): yes / no, App Insights resource ID: ___
    • Trace content capture decided and written down. Server-side agent traces include prompt content once Application Insights is connected. Client-side SDK content recording (OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT) is off by default and captures messages and tool-call arguments when on: ___
    • The Application Insights workspace is treated as a PHI store (access, retention, and encryption match Section F and Section G): yes / no
    • Log Analytics workspace residency (region): ___, confirmed US and on the approved Region list: yes / no
    • Log Analytics analytics retention (default 30 days, maximum 730): ___ days
    • Long-term retention (formerly archive): ___ days, total retention (maximum 12 years) covers the six-year floor this worksheet uses: yes / no

    Section D: Foundry Agent Service tool calls

    • Tool-call logging enabled at the Foundry Agent Service layer: yes / no
    • Per-tool input parameter logging enabled (every parameter the agent composed, captured): yes / no
    • Per-tool output payload logging enabled (full response, subject to PHI handling): yes / no
    • Tool definitions versioned in source control with definition hash captured at invocation time: yes / no
    • Agent graph / workflow definition pinned to a specific version per environment (dev, staging, prod): yes / no
    • Agent graph version recorded on every invocation log entry: yes / no
    • Sub-agent chain logging enabled (parent invocation ID propagated to every sub-agent and tool call): yes / no
    • Single correlation ID convention enforced across user request, agent, sub-agents, tool calls, model calls: yes / no
    • Tool registry inventory attached, with PHI-return flag per tool: yes / no
    • Tool-call retry and failure events logged under the same correlation ID: yes / no
    • Code Interpreter use reviewed. It runs in a Microsoft-managed sandbox, and when it is used through a toolbox in a hosted agent, user isolation is not supported and all users in the project share one container context: in use / not in use, PHI permitted: yes / no

    Section E: Identity and access

    • Agent runs under its own Microsoft Entra agent identity, not a user identity or shared secret. Newly created agents get one; legacy agents share a project-level identity: yes / no
    • Agent identity or managed identity in use, object ID: ___
    • One identity per agent, not shared across the Foundry project: yes / no
    • Least-privilege Azure RBAC verified, the agent identity has only the roles required to call its registered tools (a new agent identity starts with no resource permissions): yes / no
    • On-behalf-of flow configured so the clinician's Microsoft Entra identity propagates from front end into the agent and into Entra-aware tools: yes / no. Agent identity acting on behalf of the user is in preview and limited to specific tools; tools that support it today: ___
    • Tools that touch PHI reject service-principal-only calls (require a user-context token): yes / no
    • Conditional Access enforced on the front-end application that invokes the agent (device compliance, MFA, location): yes / no
    • Privileged Identity Management used for any human role with write access to the Foundry resource, the diagnostic setting, or the Log Analytics workspace: yes / no
    • Break-glass account for the Foundry resource documented and monitored: yes / no

    Section F: Customer access to logs

    • Log access mode (primary): Microsoft Sentinel / Log Analytics direct query (KQL) / export to external SIEM: ___
    • If Sentinel: Sentinel workspace = the same Log Analytics workspace as Section C (yes preferred): yes / no
    • If Sentinel: operating procedures reference the Microsoft Defender portal, since Sentinel is supported in the Azure portal only through March 31, 2027: yes / no
    • If external SIEM: export mechanism (Diagnostic settings → Event Hub → SIEM connector / Logic App / Data Collection Rule): ___
    • Export latency from Foundry event to query-able log (target ≤ 15 minutes): ___ minutes
    • Tamper protection on the audit record. A resource lock on the workspace blocks purge, table delete, and retention changes, but the lock can be removed; the tamper-proof copy is an export to immutable Blob Storage under a locked time-based retention policy: ___
    • Workspace sits in the customer's subscription with read access limited to compliance and incident-response roles: yes / no
    • Saved KQL / Sentinel hunting queries for the OCR-investigator questions (which patient record, via which agent, for which clinician request): yes / no
    • Sentinel analytics rules tied to Foundry-specific signals (prompt-attack detection, guardrail blocks, tool-call failure spikes, identity collapse): yes / no

    Section G: Storage and residency

    • Agent setup type: basic (threads, files, and vector stores in Microsoft-managed storage) / standard (the customer's own Azure Cosmos DB, Azure Storage, and Azure AI Search): ___. PHI workloads run on standard setup: yes / no
    • Vector store choice: Azure AI Search (the store behind agent vector stores in standard setup) / Azure Cosmos DB for NoSQL / Azure DocumentDB (formerly Azure Cosmos DB for MongoDB vCore) / Azure Database for PostgreSQL flexible server (pgvector) / other: ___
    • Vector store in-scope status confirmed against the Service Trust Portal document named in Section A: yes / no
    • Vector store region (residency): ___, confirmed US and on the approved Region list: yes / no
    • Customer-Managed Key (CMK) in Azure Key Vault for the Foundry resource: yes / no, Key Vault resource ID: ___
    • CMK configured for the Log Analytics workspace (requires a dedicated cluster, with a commitment tier of at least 100 GB per day): yes / no
    • CMK configured for the vector store: yes / no
    • Per-namespace / per-tenant key separation in the vector store (where the agent serves multiple covered entities or business lines): yes / no
    • Key rotation interval documented and automated: ___
    • Soft-delete and purge protection enabled on Key Vault: yes / no
    • Private Endpoint configured for the Foundry resource, the vector store, and Key Vault, public network access disabled: yes / no
    • Agent Service network isolation: Standard Setup with private networking (bring your own virtual network) / managed virtual network / none: ___

    The five audit-log gaps that prevent regulator-grade evidence

    Any one of these, unresolved, is enough to make the workflow indefensible in an OCR investigation.

    (a) Foundry telemetry not flowing to a customer-controlled Log Analytics workspace. The dashboards in the Foundry portal look populated, but no diagnostic setting routes events into a customer-owned, customer-retained workspace, or Application Insights was never connected to the project. The customer has visibility through a Microsoft-operated surface; the customer does not have a durable, long-retention record of its own, which is what makes the §164.312(b) audit control usable in an investigation.

    (b) Tool-call inputs not logged at parameter level. The audit log shows Tool X was called and that it succeeded, but does not capture the parameters the agent composed. The OCR question "which patient record did the agent access" cannot be answered. RequestResponse is on at the model layer, but agent traces are not connected or content recording is off, or the tool implementations themselves do not emit parameter-level telemetry.

    (c) Sub-agent chain not connectable to the parent agent invocation. The agent calls sub-agents which call tools. Each layer logs to the same workspace, but the correlation ID convention is inconsistent. The parent invocation ID does not propagate through the chain. Reconstructing "what happened in this request" requires manual stitching, which is not a regulator-grade evidentiary record.

    (d) Log retention shorter than the six-year floor. Log Analytics retention sits at the platform default (30 days for most tables, 90 days free with Sentinel) with no long-term retention configured. The six-year floor used here is the HIPAA documentation retention period, six years from the date a record was created or last in effect, whichever is later (45 CFR 164.316(b)(2)(i)). The Security Rule sets no separate period for audit logs, and several states set longer ones. Retention shorter than that floor leaves a gap regardless of how thorough the schema is.

    (e) Sentinel hunt queries not maintained because Foundry schemas change. The team built a Sentinel detection library at go-live and has not revisited it. Foundry's telemetry schemas evolve with the service; columns rename, event types appear, queries silently return zero rows. A quarterly maintenance cadence, monthly during the first year of GA, is the only thing that keeps the detections honest.

    Pre-production go / no-go

    BandDefinitionAction
    GreenAll seven sections answered. None of the five gaps present. Retention covers the six-year floor. Identity propagation verified end-to-end against a sample tool-call audit entry.Pre-production go. Schedule the first audit-log review at 30 days post-launch.
    YellowSections A–C clean. One or two operational gaps in D–G with a documented remediation path and a named owner. None of the five gaps unresolved.Conditional go with a written remediation date. Re-run the affected sections before the date; escalate to red if missed.
    RedAny section A–C unanswered, more than two open items in D–G, any of the five gaps present, retention shorter than the six-year floor, or identity propagation collapses to the agent's own identity at any tool-call layer.No-go for production PHI traffic. Remediate, then re-run. Pilots that route real PHI are production for this purpose.

    What this is not

    Not legal advice and not a substitute for counsel review of the Microsoft BAA for the services in scope. Not Microsoft compliance documentation; the authoritative compliance documentation for Microsoft Foundry is Microsoft's, and it moves. The configuration surface described here was reviewed against Microsoft's published documentation as of the lastReviewed date in the frontmatter and frozen there. One item could not be settled from public pages at that review: the list of services in scope for the HIPAA BAA lives in a Service Trust Portal document, which is why Section A asks the buyer to verify it directly. Re-verify against current Microsoft documentation before relying on a band determination, and re-run the worksheet on any material change to the Foundry project, the model deployments, the diagnostic settings, the Log Analytics workspace, or the identity model.