Share via

Unable to create a search service

Rangarajan Subramani 0 Reputation points Microsoft Employee
2026-04-06T12:24:56.01+00:00

Getting the error message "RequestDisallowedByPolicy: Resource 'cgns-virtuosodex-hf-eastus' was disallowed by policy. Reasons: 'This configuration is not compliant. Refer to https://aka.ms/Azure_AISearch_AuthN_Use_Managed_Service_Identity for more details.'. See error details for policy resource IDs."

This talks about setting up a System Managed Identity, but I am not getting that option when creating the Search service.

Azure Policy
Azure Policy

An Azure service that is used to implement corporate governance and standards at scale for Azure resources.


Answer accepted by question author
  1. Suchitra Suregaunkar 11,395 Reputation points Microsoft External Staff Moderator
    2026-04-06T16:38:22.7366667+00:00

    Hello Rangarajan Subramani

    The error you are seeing: RequestDisallowedByPolicy: This configuration is not compliant. Refer to https://aka.ms/Azure_AISearch_AuthN_Use_Managed_Service_Identity

    is caused by an Azure Policy with a Deny effect that enforces Managed Identity–based authentication for Azure AI Search.

    Azure AI Search does not support enabling a System‑assigned Managed Identity at creation time. Managed identity is configured only after the search service is successfully created, not during creation. After you create a search service, configure it to use a system-assigned or user-assigned managed identity.

    Because of this design:

    • Azure Policy evaluates the creation request only
    • A Deny policy blocks the deployment before the resource exists
    • The required managed identity cannot yet be present, so the request is denied

    This is why the System Managed Identity option is not shown during creation—it is expected to be configured post‑deployment.

    An Azure Policy with Deny effect is enforcing Managed Identity for Azure AI Search at creation time, but Azure AI Search supports enabling Managed Identity only after the service is created, leading to deployment failure.

    This is a policy enforcement mismatch, not a service limitation or portal issue.

    As a resolution the policy must be changed to not block creation of Azure AI Search.

    Microsoft‑supported approaches are:

    1. Use Audit or DeployIfNotExists instead of Deny, or
    2. Add a policy exemption for resource type Microsoft.Search/searchServices

    This allows the service to be created first, after which Managed Identity can be enabled.

    So, Azure AI Search supports Managed Identity, but it can only be enabled after the service is created. If an Azure Policy with Deny effect requires Managed Identity at creation time, the deployment fails by design. The policy must be changed to Audit/DeployIfNotExists or an exemption should be applied for Microsoft.Search/searchServices.

    References: https://learn.microsoft.com/en-us/azure/search/search-manage

    Azure Policy definitions deny effect: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deny

    Using Bicep to set a system‑assigned managed identity is supported, but to resolve the error when an Azure Policy uses a Deny effect. The policy blocks the request before the search service can be created, and Azure AI Search completes managed identity and authentication configuration only after creation. The policy must be changed to Audit/DeployIfNotExists or an exemption must be applied.

    Reference: https://learn.microsoft.com/en-us/azure/templates/microsoft.search/searchservices?pivots=deployment-language-bicep

    Thanks,
    Suchitra.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Marcin Policht 85,065 Reputation points MVP Volunteer Moderator
    2026-04-06T13:18:34.92+00:00

    Use Bicep - follow https://learn.microsoft.com/en-us/azure/templates/microsoft.search/searchservices?pivots=deployment-language-bicep


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.