# Azure Machine Learning registry deployments restricted to the allowed registry (preview)

Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.

Azure Machine Learning registry deployments restricted to the allowed registry (preview) is an Azure guardrail written in Azure Policy. Denies deployments of registry models unless they come from the allowed registry and are not on the restricted model list. Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement.

```text
Built-in policy definition: [Preview]: Azure Machine Learning Model Registry Deployments are restricted except for the allowed Registry
Definition ID: 19539b54-c61e-4196-9a38-67598701be90
Category: Machine Learning
Supported effects: Deny, Disabled
policyRule (copied from the repository file):
{
    "if": {
      "allOf": [
        {
          "field": "type",
          "equals": "Microsoft.MachineLearningServices.v2.Data/workspaces/deployments"
        },
        {
          "anyOf": [
            {
              "field": "Microsoft.MachineLearningServices.v2.Data/workspaces/deployments/model.assetId",
              "in": "[parameters('restrictedModels')]"
            },
            {
              "allOf": [
                {
                  "field": "Microsoft.MachineLearningServices.v2.Data/workspaces/deployments/model.assetId",
                  "like": "azureml://registries/*"
                },
                {
                  "not": {
                    "field": "Microsoft.MachineLearningServices.v2.Data/workspaces/deployments/model.assetId",
                    "like": "[concat('azureml://registries/', parameters('allowedRegistryName'), '/*')]"
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    "then": {
      "effect": "[parameters('effect')]"
    }
  }
```

- **Blocks:** Denies deployments of registry models unless they come from the allowed registry and are not on the restricted model list.
- **Breaks:** This definition is a preview, and if no allowed registry name is set the parameter description says all models from all registries are restricted. ([source](https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Machine%20Learning/OnlyDeployAllowedRegistryModels_Deny.json))
- **Test before applying:** As for every Azure Policy guardrail: [how to test before enforcing](/mechanisms/azure-policy/)
- **Mechanism:** [Azure Policy (built-in definitions)](/mechanisms/azure-policy/): Resources at the scope of the assignment (management group, subscription, resource group) and their children, except notScopes and exemptions
- **Taken from:** [open source set](https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Machine%20Learning/OnlyDeployAllowedRegistryModels_Deny.json), MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE

## What the source says

"Only deploy Registry Models in the allowed Registry and that are not restricted." (read 10 Nov 2026).

On what it breaks: "If not set, by default all models from all registries will be restricted."

## Related guardrails

- [Region deny that allows Bedrock cross-Region inference](/guardrails/aws-scp-region-deny-with-bedrock-cris/): AWS, Service control policies (SCPs), ai services
- [Allow only approved Amazon Bedrock models](/guardrails/aws-scp-bedrock-approved-models-only/): AWS, Service control policies (SCPs), ai services
- [Deny Amazon Bedrock API keys](/guardrails/aws-scp-deny-bedrock-api-keys/): AWS, Service control policies (SCPs), ai services
- [Configure Cognitive Services accounts to disable public network access](/guardrails/azure-policy-ai-disable-public-network/): Azure, Azure Policy (built-in definitions), ai services
- [Configure Cognitive Services accounts to disable local authentication](/guardrails/azure-policy-ai-disable-local-auth/): Azure, Azure Policy (built-in definitions), ai services
- [Configure Azure AI Services resources to disable local key access](/guardrails/azure-policy-ai-disable-local-auth-dine/): Azure, Azure Policy (built-in definitions), ai services

## Related pages

- [Microsoft Foundry agents and toolboxes should not use denied tools (preview) (Azure Azure Policy)](/guardrails/azure-policy-foundry-denied-tools/)
- [Azure AI Search services should disable public network access (Azure Azure Policy)](/guardrails/azure-policy-search-disable-public-network/)
- [Deployment stack deny settings (Azure RBAC deny assignment) (Azure Azure RBAC deny assignments)](/guardrails/azure-deny-assignment-deployment-stack/)

## Sources

- Azure Machine Learning registry deployments restricted to the allowed registry (preview): https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Machine%20Learning/OnlyDeployAllowedRegistryModels_Deny.json (read 10 Nov 2026)
- How to test it first: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/assignment-structure (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/guardrails/azure-policy-ml-registry-models/
