← AI Security & GovernanceAI Security & Governance

Azure AI Governance

Four Microsoft services, each answering a different question — and one screen where their answers actually meet.

Ask "how do you govern AI in Azure" and most answers name one product — usually whichever one the person answering happens to work in. The honest answer needs four: a policy engine that writes the rules, a resource type those rules actually target, a platform to build and operate the AI on, and a data-governance layer that watches everything the other three produce. Miss one and the picture is incomplete — a tenant with airtight Azure Policy assignments and no Purview coverage still has no idea what its agents are doing with sensitive data.

None of these four services were designed as a single product. They converge because Azure Policy governs the resource Foundry is built on, and Purview watches what Foundry produces — not because a diagram says they should.

How the Four Pieces Connect

Policy governs the platform; the platform is built on a resource Policy can target directly; Purview watches the platform's output; and one screen — Foundry's own control plane — is where all three signals actually surface together.

How Azure Policy, Microsoft Foundry, Cognitive Services, and Microsoft Purview fit together📜 AZURE POLICY — decides what's allowed to existBUILT-IN POLICIES• Network access locked down• No public endpoints allowed• Local auth turned off• Keys must be customer-managedCUSTOM POLICIES• Only approved models allowed• Caps on connection types• Org-specific rule sets• Logic lives in a JSON policyRule blockEFFECTS• Deny — stops it cold• Audit — flags, doesn't block• Modify — fixes automatically• DeployIfNotExist — provisionsSCOPE & ASSIGNMENT• Set at group / sub / RG level• Tied to compliance initiatives• Covers CMMC, FedRAMP, 800-171• Assigning one needs Policy Contributor rightsgoverns what's allowed(deny, audit, modify)extendscoverage to🧠 MICROSOFT FOUNDRYBUILD• Ready-to-deploy model catalog• Agent Service: agents + tools• Prompt design and fine-tuning• Organized into hubs/projectsOPERATE (CONTROL PLANE)• Tracks agents and models live• Guardrail policy assignment• Admin-side quota management• Telemetry across the fleetGUARDRAILS (CONTENT SAFETY)• Flags violence, hate, sexual content, self-harm by severity• Prompt Shields catch direct and indirect injection attempts• Checks run at input, tool call, response, and output• Red-teaming agent stress-tests before releasewatcheswhat itproducesruns on⚙️ COGNITIVE SERVICESMicrosoft.CognitiveServices/accounts — the actual resourcea Foundry deployment runs on, and what a policy targets.🎯 CONVERGENCE POINT• Policies — enforcement rules and live compliance status• Assets — trace a violation to the deployment that caused it• Guardrails — coverage compared across every deployment• Security posture — Defender and Purview status side by sideChecking four consoles becomes checking one —everything above lands on this single pane.shows upin thisview too🛡️ MICROSOFT PURVIEWDSPM FOR AI• Catalogs AI surfaces tenant-wide, not just Foundry• Inspects the actual prompt and response content• Catches oversharing before it becomes an incidentDLP FOR AI INTERACTIONS• PII, PHI, PCI blocked before they leave a prompt• Carries sensitivity labels into AI interactions• Piggybacks on DLP rules the org already runsCOMPLIANCE MANAGER• Cross-references enforcement against NIST, ISO, CMMC• Keeps audit evidence current automatically• Scores compliance continuously, not annuallyAUDIT & ACTIVITY LOGGING• Keeps a full history of AI interactions• Makes AI content reachable for legal holds• Feeds signals into insider-risk detection• Prompt data inherits the tenant's retention schedule📜POLICYthe rules⚙️COGNITIVE SERVICESwhat they target🧠FOUNDRYwhere it gets built🛡️PURVIEWthe check on all three

The 360° Governance View

Four different questions, four different answers — confusing them is the most common way people misjudge what's actually covered.

ServiceRoleWhat It Actually Does
Azure PolicyThe rulebookDecides what can and can’t exist, with an effect attached to every rule — block it, flag it, fix it automatically
Cognitive ServicesThe targetThe actual ARM resource type (Microsoft.CognitiveServices/accounts) that a policy assignment attaches to
Microsoft FoundryThe workbenchWhere models and agents get built, deployed, and kept under observation once they’re live
Microsoft PurviewThe watcherDiscovery, loss prevention, compliance scoring, and audit — checking what the other three actually produced

Azure Policy — the Enforcement Engine

Azure Policy doesn't build or run anything — it decides what's allowed to exist, and what happens when something doesn't comply. Built-in policies cover the obvious guardrails (no public access, no local auth, encryption with a customer-managed key); custom policies handle the organization-specific ones, like a model allowlist or a connection-category limit, authored as JSON. What makes it enforcement rather than documentation is the effect attached to each rule — deny blocks the non-compliant resource outright, audit just flags it, modify auto-remediates, and DeployIfNotExist can provision a missing control automatically.

PillarCovers
Built-in policiesLocked-down network access, no public endpoints, local auth disabled, encryption keyed to a customer-managed key
Custom policiesAn allow-list of approved models, caps on connection types, org-specific rules written as JSON policyRule definitions
EffectsDeny stops it outright, Audit just flags it, Modify fixes it automatically, DeployIfNotExist provisions what was missing
Scope & assignmentApplied at the management-group, subscription, or resource-group level, tied to initiatives like CMMC, FedRAMP, NIST 800-171

Microsoft Foundry — Build and Operate

Foundry is the actual workbench: the model catalog, the Agent Service, prompt flow and fine-tuning, organized into hubs and projects. That's the "build" half. The "operate" half — asset inventory, guardrail policy assignment, quota and admin management, fleet-wide observability — is what turns a collection of deployed models into something a security team can actually reason about.

Guardrails — Content Safety

Both halves rely on the same guardrail layer. Harm-category detection covers violence, hate, sexual content, and self-harm, each with its own configurable severity threshold. Prompt Shields catch both direct and indirect injection attempts. Checks run at every stage of a call — user input, tool call, tool response, and final output — and an AI red-teaming agent adversarially tests a deployment before it ever reaches production.

Cognitive Services — the Resource Underneath

Foundry is a developer experience layered on top of a specific Azure resource type — Microsoft.CognitiveServices/accounts. This is the detail that makes Azure Policy's role concrete: policy doesn't govern "Foundry" as an abstraction, it governs this resource type directly, the same way it governs a storage account or a key vault. Anyone writing a custom policy for AI workloads needs to know this is the actual target.

Microsoft Purview — the Data Governance Overlay

Everything above this line assumes the AI is behaving as intended. Purview is the check on that assumption — it doesn't build or enforce, it watches. DSPM for AI discovers AI apps across the tenant (Foundry, Copilot, and beyond) and scans what's actually flowing through prompts and responses for oversharing risk. DLP extends the organization's existing data-loss policies into AI interactions specifically. Compliance Manager maps whatever Purview and Policy are already enforcing back to named frameworks, and audit logging keeps the interaction history discoverable and subject to retention rules like everything else in the tenant.

CapabilityWhat It Does
DSPM for AIFinds every AI app running in the tenant, reads what prompts and responses actually contain, and surfaces oversharing before it turns into a breach
DLP for AI interactionsKeeps PII, PHI, and PCI from leaving through a prompt by reusing the sensitivity labels and loss-prevention rules already in place
Compliance ManagerTies enforced controls back to named frameworks (NIST, ISO, CMMC) and keeps a running compliance score instead of a once-a-year snapshot
Audit & activity loggingKeeps a full interaction history that supports eDiscovery, feeds insider-risk detection, and applies the same retention rules as everything else in the tenant

Why the Convergence Point Matters

Governance tooling fails in practice for a boring reason: the evidence that something is under control is scattered across four consoles nobody checks together. Foundry's own control plane is the one screen built to close that gap — a policies tab that shows enforcement rules and live compliance status, an assets tab that ties a policy violation to the specific deployment that caused it, a guardrails tab that surfaces coverage gaps across deployments instead of per-deployment, and a security posture tab that puts Defender for Cloud and Purview's enablement status on the same pane. None of that is a new capability — it's the same four services, just finally visible in one place instead of four.

None of these four services set out to be a single product — they end up converging anyway, because a rulebook needs something to enforce against, a platform needs a resource to run on, and a governance lens is only useful once there's something underneath it worth watching.