Gallery › Cognitive Services › Azure built-in policies
[Preview]: Microsoft Foundry agents should not use denied agent kinds
Doesn't convert yet Policy Audit Deny Disabled Mode Microsoft.CognitiveServices.Data Version 1.0.0-preview Preview
Helps organizations prevent Microsoft Foundry agent kinds that are prohibited by organizational requirements.
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 JSONDenyAgentKinds_Audit.json · 59 lines
{
"properties": {
"displayName": "[Preview]: Microsoft Foundry agents should not use denied agent kinds",
"policyType": "BuiltIn",
"mode": "Microsoft.CognitiveServices.Data",
"description": "Helps organizations prevent Microsoft Foundry agent kinds that are prohibited by organizational requirements.",
"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."
}
},
"deniedAgentKinds": {
"type": "Array",
"defaultValue": [],
"metadata": {
"displayName": "Denied Agent Kinds",
"description": "List of agent kinds that Microsoft Foundry agents are not allowed to use."
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.CognitiveServices.Data/accounts/projects/agents"
},
{
"field": "Microsoft.CognitiveServices.Data/accounts/projects/agents/agentKind",
"in": "[parameters('deniedAgentKinds')]"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0-PREVIEW"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/b6ca2367-8597-4a3f-ab19-48f58d6d9278",
"name": "b6ca2367-8597-4a3f-ab19-48f58d6d9278"
}Source: built-in-policies/policyDefinitions/Cognitive Services/DenyAgentKinds_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw