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.
More ai services guardrails ยท About Azure Policy
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)
- Test before applying
- As for every Azure Policy guardrail: how to test before enforcing
- Mechanism
- Azure Policy (built-in definitions): Resources at the scope of the assignment (management group, subscription, resource group) and their children, except notScopes and exemptions
- Taken from
- open source set, 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 inferenceAWS, Service control policies (SCPs), ai services
- Allow only approved Amazon Bedrock modelsAWS, Service control policies (SCPs), ai services
- Deny Amazon Bedrock API keysAWS, Service control policies (SCPs), ai services
- Configure Cognitive Services accounts to disable public network accessAzure, Azure Policy (built-in definitions), ai services
- Configure Cognitive Services accounts to disable local authenticationAzure, Azure Policy (built-in definitions), ai services
- Configure Azure AI Services resources to disable local key accessAzure, Azure Policy (built-in definitions), ai services
Related pages
Sources
- Azure Machine Learning registry deployments restricted to the allowed registry (preview), read 10 Nov 2026
- How to test it first, read 10 Nov 2026
Last reviewed 16 Nov 2026.