Chapter 2 of 6 · Architecture

Azure Policy guardrails for Microsoft Foundry AI services

Optional module · Draft 4 hours

Chapter 2 of 6

Architecture at a glance#

The repository deploys a subscription-scope policy initiative and assigns it to the exact approved scope. The initiative includes five guardrail areas:

GuardrailPolicy pathFirst statePromotion path
Disable local authenticationBuilt-in key-access policyAuditDeny after Entra access is ready
Restrict network accessBuilt-in network policyAuditDeny after private access is ready
Restrict deployment SKUCustom policy definitionAuditDeny after data-residency review
Content-filter minimumsPreview built-in, one reference per harm categoryAuditStays Audit until the built-in supports blocking
Diagnostic logsBuilt-in Log Analytics policyAuditIfNotExistsDeployIfNotExists after role approval

guardrail-decisions.json is the module's decision record. It names the target scope, owners, effects, Log Analytics destination, disallowed SKUs, content-filter minimums, and restore reference.

The assignment starts with enforcementMode = DoNotEnforce. That lets the owner review current Policy Insights data before a blocking effect or remediation effect is enabled.

Design choices and tradeoffs#

DecisionChosen approachBenefitsCosts and limitations
Assignment rolloutOne assignment staged in DoNotEnforce, then promoted in placeKeeps compliance history and avoids a second assignmentThe team must wait for current policy states before promotion
Model approvalExcluded from this moduleKeeps model allow-list ownership with Session 03This module cannot decide which models are approved
Network and local authBuilt-in Audit or Deny policiesUses Microsoft-maintained aliases and effectsDeny can block tools that still need keys or public endpoints
Data residencyCustom SKU policyMakes the residency choice explicit in source controlThe SKU list must be reviewed when Foundry adds deployment types
Diagnostic logsAudit first, then DINE with a managed identityShows missing logs before remediation writes settingsThe assignment identity needs the approved Log Analytics role path

Architecture guidance#

Use Built-in policy definitions for Foundry Tools for the current Microsoft-maintained policy names and effects.

Use Details of the policy assignment structure for assignment scope, parameters, identity, non-compliance messages, and enforcementMode.

Use Bicep What-If to preview the initiative and assignment before deployment.

Optional module

Azure Policy guardrails for Microsoft Foundry AI services slide deck