The Solutions:
Solution 1: Configure Private Endpoint via Private DNS Integration
To resolve the issue of "Public access is disabled. Please configure private endpoint", even after configuring a private endpoint for the Azure OpenAI Service, the following steps should be taken:
- Create a private DNS zone to integrate with the private endpoint. The private DNS zone should be named as "privatelink.openai.azure.com".
- Create an A record within the private DNS zone. The A record should point to the private IP address of the private endpoint.
- Link the virtual network with the private DNS zone. This allows the virtual network to resolve the DNS name of the private endpoint using the private DNS zone.
- Verify the private endpoint configuration by accessing the OpenAI Service from within the virtual network. If the connection is successful, the error should no longer appear.
Q&A
Why do I get "Public access is disabled" for Azure OpenAI Service even with a private endpoint configured?
Ensure your private endpoint is integrated with a Private DNS Zone.