Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Thank you for the detailed explanation of your current setup and requirements. I fully understand your goal: make the chatbot application accessible to external users worldwide, while keeping the Azure OpenAI resource completely private and secure.
your proposed approach is valid and follows a well-supported Azure networking pattern. Implementing the changes below should resolve your issue
Recommended Architecture
- Enable public network access on the Azure App Service and remove the inbound Private Endpoint.
- Keep VNet Integration enabled (outbound) so the Web App can reach your virtual network.
- Keep Azure OpenAI fully private — leave public network access disabled and retain the Private Endpoint.
This configuration allows:
- External/global users to access the chatbot via the public App Service URL (or custom domain).
- The Web App to securely call Azure OpenAI models over private connectivity (Private Link) without exposing the OpenAI endpoints to the internet.
- Internal users to continue using your corporate Secure Web Gateway (SWG) / rewritten URL as before.
Access Clarification
- Internal users: They can keep accessing the application through the existing SWG-rewritten URL (corporate policies will continue to apply).
- External users: They should access the application using the native App Service URL (https://<yourapp>.azurewebsites.net) or a custom domain.
We do not recommend making the SWG-rewritten URL publicly available, as these gateways are intended for internal traffic inspection and control.
Important Configuration Tips
To ensure reliable connectivity from the App Service to the private Azure OpenAI endpoint, please make sure to:
- Link the Private DNS zone (privatelink.openai.azure.com) to the VNet used by your App Service.
- Set the app setting WEBSITE_VNET_ROUTE_ALL = 1 (this is strongly recommended for Private Endpoint scenarios).
Production Recommendations
For better security, performance, and user experience, we also suggest:
- Adding a custom domain with a managed certificate.
- Placing Azure Front Door (with WAF) or Application Gateway with WAF in front of the App Service.
reference :
https://learn.microsoft.com/en-us/azure/app-service/overview-vnet-integration
https://learn.microsoft.com/en-us/azure/app-service/configure-vnet-integration-routing
https://learn.microsoft.com/en-us/azure/foundry-classic/openai/how-to/network
https://learn.microsoft.com/en-us/azure/frontdoor/front-door-waf
If the answer is helpful, Please do click "Accept the answer” and Yes, this can be beneficial to other community members.
If you have any other questions, let me know in the "comments" and I would be happy to help you