Unable to access Azure OpenAI from AI project

Luca Pio Miano 20 Reputation points
2025-05-05T18:08:27.45+00:00

Hello,

I've been trying to access my azure OpenAI resources from an Azure AI project in the Agents section but i always get this error when i try to load the resources.

Unable to access your agents Public access is disabled in the AI Service. Please open and configure a private endpoint connection. Learn more

I've also tried to setup the Azure AIHub where the project is deployed by enabling the managed virtual network option and creating a private endpoint for the OpenAI resource but i still get the error.

Apparently the OpenAI resource is correctly connected, i can clearly see the models deployed into it and if i try to open the chat and ask something to one of the models from the Playground section inside the AI Project everything works fine, the only problem is for the Agents section.

Any ideas?

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,602 questions
{count} votes

Accepted answer
  1. Prashanth Veeragoni 4,930 Reputation points Microsoft External Staff Moderator
    2025-05-20T07:34:30.8133333+00:00

    Hi Luca Pio Miano,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.

    Ask: Unable to access Azure OpenAI from AI project

    Solution: The issue is resolved. The problem had nothing to do with the one I mentioned earlier, I finally managed to solve it. The problem is that the connected resource in AIHub has to be configured with Managed EntraID authentication instead of Api Key authentication, doing so I managed to access the agent successfully.

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.

    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    Thank you!

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Luca Pio Miano 20 Reputation points
    2025-05-06T08:30:31.8066667+00:00

    Hi @Prashanth Veeragoni ,

    Thank you for your answer.

    I carely realized all of the steps you suggested:

    I've recreated an Azure AIHub resource with Managed VNet enabled and created a private endpoint pointing to the OpenAI resource inside Managed VNet.

    I've also created a private endpoint for Azure OpenAI resource inside my VNet as well as disabling public access.

    I've also tested the DNS resolution from inside a VM inside the same VNet but I'm still having the same issue trying to connect from AI Project Agents section.

    I still cannot see how to put the AI Project resource inside the same VNet of the OpenAI private endpoint, the one that I've created, not the Managed one. There is no such option

    Any ideas?

    Luca


Your answer

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