# Configure Azure AI Services resources to disable local key access

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

Configure Azure AI Services resources to disable local key access is an Azure guardrail written in Azure Policy. Deploys the setting that disables key access on Azure AI Services resources, leaving Microsoft Entra ID as the only access method. Copied from a licensed open source set and read on 10 Nov 2026.

```text
Built-in policy definition: Configure Azure AI Services resources to disable local key access (disable local authentication)
Definition ID: 55eff01b-f2bd-4c32-9203-db285f709d30
Category: Azure Ai Services
Supported effects: DeployIfNotExists, Disabled
policyRule (copied from the repository file):
{
    "if": {
      "field": "type",
      "equals": "Microsoft.CognitiveServices/accounts"
    },
    "then": {
      "effect": "[parameters('effect')]",
      "details": {
        "type": "Microsoft.CognitiveServices/accounts",
        "name": "[field('name')]",
        "existenceCondition": {
          "field": "Microsoft.CognitiveServices/accounts/disableLocalAuth",
          "equals": true
        },
        "roleDefinitionIds": [
          "/providers/Microsoft.Authorization/roleDefinitions/a001fd3d-188f-4b5d-821b-7da978bf7442",
          "/providers/microsoft.authorization/roleDefinitions/25fbc0a9-bd7c-42a3-aa1a-3b75d497ee68"
        ],
        "deployment": {
          "properties": {
            "mode": "incremental",
            "template": {
              "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
              "contentVersion": "1.0.0.0",
              "parameters": {
                "resourceName": {
                  "type": "string"
                },
                "location": {
                  "type": "string"
                },
                "disableLocalAuth": {
                  "type": "string"
                },
                "kind": {
                  "type": "string"
                },
                "sku": {
                  "type": "object"
                },
                "publicNetworkAccess": {
                  "type": "string"
                },
                "networkAcls": {
                  "type": "object"
                }
              },
              "variables": {},
              "resources": [
                {
                  "type": "Microsoft.CognitiveServices/accounts",
                  "apiVersion": "2023-10-01-preview",
                  "name": "[parameters('resourceName')]",
                  "kind": "[parameters('kind')]",
                  "sku": "[parameters('sku')]",
                  "location": "[parameters('location')]",
                  "properties": {
                    "customSubDomainName": "[parameters('resourceName')]",
                    "disableLocalAuth": "[parameters('disableLocalAuth')]",
                    "publicNetworkAccess": "[parameters('publicNetworkAccess')]",
                    "networkAcls": "[parameters('networkAcls')]"
                  }
                }
              ],
              "outputs": {}
            },
            "parameters": {
              "location": {
                "value": "[field('location')]"
              },
              "resourceName": {
                "value": "[field('name')]"
              },
              "disableLocalAuth": {
                "value": "[parameters('disableLocalAuth')]"
              },
              "kind": {
                "value": "[field('kind')]"
              },
              "sku": {
                "value": "[field('Microsoft.CognitiveServices/accounts/sku')]"
              },
              "publicNetworkAccess": {
                "value": "[parameters('publicNetworkAccess')]"
              },
              "networkAcls": {
                "value": "[field('Microsoft.CognitiveServices/accounts/networkAcls')]"
              }
            }
          }
        }
      }
    }
  }
```

- **Blocks:** Deploys the setting that disables key access on Azure AI Services resources, leaving Microsoft Entra ID as the only access method.
- **Breaks:** Azure OpenAI Studio requires key access and will not function if key access is disabled, per the definition description. ([source](https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Azure%20Ai%20Services/DisableLocalAuth_CognitiveServices_DINE.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/Azure%20Ai%20Services/DisableLocalAuth_CognitiveServices_DINE.json), MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE

## What the source says

"Key access (local authentication) is recommended to be disabled for security." (read 10 Nov 2026).

On what it breaks: "Azure OpenAI Studio, typically used in development/testing, requires key access and will not function if key access is disabled."

## 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 Machine Learning workspaces to disable public network access](/guardrails/azure-policy-ml-workspace-disable-public-network/): Azure, Azure Policy (built-in definitions), ai services

## Related pages

- [Configure Azure Machine Learning workspaces to disable public network access (Azure Azure Policy)](/guardrails/azure-policy-ml-workspace-disable-public-network/)
- [Azure Machine Learning registry deployments restricted to the allowed registry (preview) (Azure Azure Policy)](/guardrails/azure-policy-ml-registry-models/)
- [Microsoft Foundry agents and toolboxes should not use denied tools (preview) (Azure Azure Policy)](/guardrails/azure-policy-foundry-denied-tools/)

## Sources

- Configure Azure AI Services resources to disable local key access: https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Azure%20Ai%20Services/DisableLocalAuth_CognitiveServices_DINE.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-ai-disable-local-auth-dine/
