Gallery › Cognitive Services › Azure built-in policies
[Preview]: Microsoft Foundry agents should only use allowed agent kinds
Doesn't convert yet Policy Audit Deny Disabled Mode Microsoft.CognitiveServices.Data Version 1.0.0-preview Preview
Helps organizations govern Microsoft Foundry agent creation by restricting agents to explicitly allowed kinds.
ConvertTo-Bylaw can't convert this policy yet:
- BYL6002 Its mode, Microsoft.CognitiveServices.Data, is a resource provider mode, which language version 1.0 doesn't support.
Azure Policy JSONAllowAgentKinds_Audit.json · 67 lines
{
"properties": {
"displayName": "[Preview]: Microsoft Foundry agents should only use allowed agent kinds",
"policyType": "BuiltIn",
"mode": "Microsoft.CognitiveServices.Data",
"description": "Helps organizations govern Microsoft Foundry agent creation by restricting agents to explicitly allowed kinds.",
"metadata": {
"version": "1.0.0-preview",
"category": "Cognitive Services",
"preview": true
},
"version": "1.0.0-preview",
"parameters": {
"effect": {
"type": "String",
"defaultValue": "Audit",
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy."
}
},
"allowedAgentKinds": {
"type": "Array",
"defaultValue": [],
"metadata": {
"displayName": "Allowed Agent Kinds",
"description": "List of agent kinds that Microsoft Foundry agents are allowed to use."
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.CognitiveServices.Data/accounts/projects/agents"
},
{
"anyOf": [
{
"field": "Microsoft.CognitiveServices.Data/accounts/projects/agents/agentKind",
"exists": false
},
{
"field": "Microsoft.CognitiveServices.Data/accounts/projects/agents/agentKind",
"notIn": "[parameters('allowedAgentKinds')]"
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0-PREVIEW"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/85455646-5d02-433e-a42d-265151140427",
"name": "85455646-5d02-433e-a42d-265151140427"
}Source: built-in-policies/policyDefinitions/Cognitive Services/AllowAgentKinds_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw