How do I connect a copilot agent to an Azure AI index securely

Shabash, Boris 40 Reputation points
2025-05-04T22:37:49.6733333+00:00

I have an Azure AI Search service, with a networking configuration where only "Selected IP addresses" can connect to it. i.e. it is blocked from public access

I also have copilot agent which I want to integrate to use the vector index from the search service, but it can't connect because of the networking setting

How do I have a copilot agent connect to a secure search service like this?

Microsoft Copilot | Microsoft 365 Copilot | Development

2 answers

Sort by: Most helpful
  1. Lalitha sangamithra mantha 20 Reputation points
    2025-10-04T22:20:54.8566667+00:00

    Hello @Shabash, Boris

    Thank you for posting your question on Microsoft Q&A. I encountered a similar issue while trying to connect a Copilot Agent to the Azure AI Search Connector, and I’d be happy to share what worked for me.

    1. If your Azure AI Search service is public, you can connect it directly from your Copilot Studio agent by navigating to Add Knowledge → AI Search Connector.
    2. I recommend this insightful post, if it is public https://community.powerplatform.com/blogs/post/?postid=4fba9a0f-89f2-ef11-be20-6045bdeb8a5d that covers practical aspects of agent deployment and integration.
    3. However, if your AI Search is private and your Copilot Agent needs to remain internal due to sensitive organizational data, Microsoft has introduced Virtual Network (VNet) Support for Power Platform. This feature allows you to deploy Copilot Agents within a private network, ensuring both the agent and the AI Search Connector reside in the same secure environment.
    4. This capability resolved my privatization challenges. You can learn more about setting up a private environment in Power Platform https://learn.microsoft.com/en-us/power-platform/admin/vnet-support-overview.
    5. Additionally, for guidance on connecting Azure AI Search from AI Foundry to AI Agents, refer to this https://learn.microsoft.com/en-us/azure/ai-foundry/agents/how-to/tools/azure-ai-search?tabs=keys%2Cazurecli.

    I hope this is helpful. Please let me know if you have any other questions on this topic.

    Thank you!!

    Was this answer helpful?

    0 comments No comments

  2. Sina Salam 30,636 Reputation points Volunteer Moderator
    2025-05-05T13:10:06.1266667+00:00

    Hello Shabash, Boris,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you would like to know how you can connect a copilot agent to an Azure AI index securely.

    1. In your Copilot agent settings, add the Azure AI Search connector. Provide the necessary details such as the Azure AI Search instance name, index name, vector field, text field, title field, and the API key for authentication - https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-azure-ai-search
    2. To resolve the networking issues, check the following and the associated links for more details. You can do this by setting up inbound rules that list the IP addresses, ranges, or subnets from which requests are admitted and if your Copilot agent is hosted on a specific IP address or within a specific subnet, make sure to add these to the allowed list in your Azure AI Search service's networking settings. - https://learn.microsoft.com/en-us/azure/search/service-configure-firewall
    3. Consider using private endpoints to securely connect your Copilot agent to the Azure AI Search service. - https://learn.microsoft.com/en-us/azure/ai-services/cognitive-services-virtual-networks
    4. Make Copilot agent to properly authenticated and authorized to access the Azure AI Search service. - https://learn.microsoft.com/en-us/azure/ai-services/cognitive-services-virtual-networks

    I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    Was this answer helpful?


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.