Gallery › Search › Azure built-in policies
Azure AI Search services should have local authentication methods disabled
Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.1
Disabling local authentication methods improves security by ensuring that Azure AI Search services exclusively require Azure Active Directory identities for authentication. Learn more at: https://aka.ms/azure-cognitive-search/rbac. Note that while the disable local authentication parameter is still in preview, the deny effect for this policy may result in limited Azure AI Search portal functionality since some features of the Portal use the GA API which does not support the parameter.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
{
"properties": {
"displayName": "Azure AI Search services should have local authentication methods disabled",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Disabling local authentication methods improves security by ensuring that Azure AI Search services exclusively require Azure Active Directory identities for authentication. Learn more at: https://aka.ms/azure-cognitive-search/rbac. Note that while the disable local authentication parameter is still in preview, the deny effect for this policy may result in limited Azure AI Search portal functionality since some features of the Portal use the GA API which does not support the parameter.",
"metadata": {
"version": "1.0.1",
"category": "Search"
},
"version": "1.0.1",
"parameters": {
"effect": {
"type": "String",
"defaultValue": "Audit",
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Search/searchServices"
},
{
"field": "Microsoft.Search/searchServices/disableLocalAuth",
"notEquals": true
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.1",
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/6300012e-e9a4-4649-b41f-a85f5c43be91",
"name": "6300012e-e9a4-4649-b41f-a85f5c43be91"
}# Converted from DisableLocalAuth_AuditDeny.json by ConvertTo-Bylaw.
Policy '6300012e-e9a4-4649-b41f-a85f5c43be91' {
Properties @{
DisplayName = 'Azure AI Search services should have local authentication methods disabled'
Description = 'Disabling local authentication methods improves security by ensuring that Azure AI Search services exclusively require Azure Active Directory identities for authentication. Learn more at: https://aka.ms/azure-cognitive-search/rbac. Note that while the disable local authentication parameter is still in preview, the deny effect for this policy may result in limited Azure AI Search portal functionality since some features of the Portal use the GA API which does not support the parameter.'
Version = '1.0.1'
Category = 'Search'
PolicyVersion = '1.0.1'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.Search/searchServices' {
Require 'disableLocalAuth is true' {
Field disableLocalAuth | Must -Be $true
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Search/DisableLocalAuth_AuditDeny.json in Azure/azure-policy, under the MIT licence.
Bylaw