# Azure AI Search services should disable public network access

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

Azure AI Search services should disable public network access is an Azure guardrail written in Azure Policy. Denies Azure AI Search services that leave public network access enabled. What it breaks: existing search services that are public are marked non-compliant but not changed; Microsoft suggests private endpoints to limit exposure.

```text
Built-in policy definition: Azure AI Search services should disable public network access
Definition ID: ee980b6d-0eca-4501-8d54-f6290fd512c3
Category: Search
Supported effects: Audit, Deny, Disabled
policyRule (copied from the repository file):
{
    "if": {
      "allOf": [
        {
          "field": "type",
          "equals": "Microsoft.Search/searchServices"
        },
        {
          "field": "Microsoft.Search/searchServices/publicNetworkAccess",
          "notEquals": "Disabled"
        }
      ]
    },
    "then": {
      "effect": "[parameters('effect')]"
    }
  }
```

- **Blocks:** Denies Azure AI Search services that leave public network access enabled.
- **Breaks:** Existing search services that are public are marked non-compliant but not changed; Microsoft suggests private endpoints to limit exposure. ([source](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deny))
- **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/Search/RequirePublicNetworkAccessDisabled_Deny.json), MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE

## What the source says

"Disabling public network access improves security by ensuring that your Azure AI Search service is not exposed on the public internet." (read 10 Nov 2026).

What it breaks is documented for every guardrail of this mechanism: see [Azure Policy](/mechanisms/azure-policy/).

## 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 AI Services resources to disable local key access](/guardrails/azure-policy-ai-disable-local-auth-dine/): Azure, Azure Policy (built-in definitions), ai services

## Related pages

- [Deployment stack deny settings (Azure RBAC deny assignment) (Azure Azure RBAC deny assignments)](/guardrails/azure-deny-assignment-deployment-stack/)
- [Resource locks (CanNotDelete and ReadOnly) (Azure Azure resource locks)](/guardrails/azure-lock-cannotdelete-readonly/)
- [Allowed locations assigned at a management group (Azure Management group assignment)](/guardrails/azure-mg-assignment-allowed-locations/)

## Sources

- Azure AI Search services should disable public network access: https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Search/RequirePublicNetworkAccessDisabled_Deny.json (read 10 Nov 2026)
- What it breaks: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deny (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-search-disable-public-network/
