Prerequisites
- An Azure account with an active subscription. If you don’t have one, create a free Azure account.
- A Foundry resource in a region that supports model router. To learn more, see Use model router for Microsoft Foundry.
- Permissions to assign Azure Policy. To create and assign policies, you must be an Owner or Resource Policy Contributor at the subscription or resource group level.
- Familiarity with Azure Policy. To learn more, see What is Azure Policy?.
How model router honors Azure Policy
When an Azure Policy is active at the subscription, resource group, or management group scope, model router enforces the policy at deploy time on every surface:- Foundry portal: The model subset selector lists all model router supported models, but checkboxes for unapproved models are disabled. A banner explains that selections are governed by Azure Policy.
- REST API, Azure CLI, and ARM templates: A model router deployment that includes an unapproved model is rejected with a policy violation. The behavior is consistent with the portal: the same policy decision applies regardless of how the deployment is created.
- Existing (brownfield) deployments: When you update or assign a policy, Azure Policy reevaluates existing model router deployments and surfaces noncompliant deployments in the Compliance dashboard. You can then remediate by removing the noncompliant deployment or by updating the model subset.
Compliance monitoring and drift detection
When you scope policies to management groups or subscriptions, Azure Policy evaluates all model router resources within that scope and reports results in the Compliance dashboard. Administrators can monitor compliance state across the organization and identify deployments that drift from approved configurations after a policy is assigned or updated. The effect you choose when assigning the policy determines how it applies to new and existing model router deployments:- Deny blocks new noncompliant deployments at deploy time and surfaces existing noncompliant deployments in the Compliance dashboard for remediation. It doesn’t automatically remove or modify existing deployments - you update them manually.
- Audit logs noncompliant deployments without blocking new requests. Use the Audit effect to measure the impact of a policy before you switch to Deny enforcement.

Assign a policy that governs model router
Model router honors built-in Foundry policy definitions for approved-models governance and, in public preview, for additional routing standards. Approved-models governance: Model router uses the same built-in Foundry policy that governs other model deployments - Foundry model deployments should only use approved models (previously named Cognitive Services Deployments should only use approved Registry Models). To assign or update this policy, follow the steps in Built-in policy for model deployment. The publisher names and asset IDs that you allow apply to model router selections automatically.To deploy and use model router while the approved-models policy is assigned, model router and every model included in the deployment must satisfy the policy through either an allowed publisher or an allowed asset ID. If you use publisher-based approval, include
Microsoft for model router and each publisher represented in the selected routing set, such as Anthropic for Claude models. Publisher names are listed on each model’s card in the model catalog. By using ARM or CLI, any noncompliant model in the requested set causes the entire deployment to fail. In the Foundry portal, noncompliant models can be excluded and a compliant subset deployed.Deploy model router with a policy in effect
The following sections describe what a developer experiences when a policy that restricts approved models is active.Foundry portal
- In the Foundry portal, open your project and go to the model catalog.
-
Find
model-routerin the Models list and select Deploy. When a policy is active, a restriction banner appears at the top of the model details page. The banner tells you that your organization’s policy excludes certain models from routing.

- To preview which models are excluded, select View blocked. The Models blocked by IT Admin dialog lists the models that your organization’s policy excludes from routing.

- In the deployment pane, choose Custom settings to expand model subset configuration.
- In the Models subset section, select Route to a subset of models. When a policy is active, an informational banner appears at the top of the model list that tells you the selection is governed by your organization’s Azure Policy. The banner asks you to contact your IT administrator to request changes.
- Select from the enabled (approved) models. Unapproved models remain visible but their checkboxes are disabled.


- Select Deploy. The deployment uses the compliant model subset.
REST API, Azure CLI, and ARM templates
When you create a model router deployment from outside the portal, Azure Policy evaluates on the control plane. If the deployment request includes a model that’s not on the allowed list, the request is rejected with a policy violation response, and no model router deployment is created. To stay compliant on the command line:- Identify the approved model asset IDs and publisher names from the policy assignment, or from your IT administrator.
- When you author the request body for the model router deployment, include only those approved models in the model subset.
- Submit the deployment by using the REST API examples in Use model router for Microsoft Foundry.
Audit existing model router deployments
When you assign a new policy, or when you update an existing policy to disallow a model that’s already in use, Azure Policy reevaluates existing model router deployments at the next compliance evaluation cycle. Use the following steps to find and remediate noncompliant deployments:- From the Azure portal, select Policy.
- Select Compliance and find your policy assignment. Noncompliant model router deployments appear in the Resource compliance view.
-
For each noncompliant deployment, choose one of the following remediation paths:
- Update the model router deployment to remove the disallowed model from the model subset.
- Delete the model router deployment and create a new one that uses only approved models.