The azure-search-openai-demo project can set up a full RAG chat app on Azure AI Search and OpenAI so that you can chat on custom data, like internal enterprise data or domain-specific knowledge sets. For full instructions on setting up the project, consult the main README, and then return here for detailed instructions on configuring private endpoints.
If you want to disable public access when deploying the Chat App, you can do so by setting azd
environment values.
Deploying with public access disabled adds additional cost to your deployment. Please see pricing for the following products:
- Private Endpoints
- The exact number of private endpoints created depends on the optional features used.
- Private DNS Zones
AZURE_PUBLIC_NETWORK_ACCESS
: Controls the value of public network access on supported Azure resources. Valid values are 'Enabled' or 'Disabled'.- When public network access is 'Enabled', Azure resources are open to the internet.
- When public network access is 'Disabled', Azure resources are only accessible over a virtual network.
AZURE_USE_PRIVATE_ENDPOINT
: Controls deployment of private endpoints which connect Azure resources to the virtual network.- When set to 'true', ensures private endpoints are deployed for connectivity even when
AZURE_PUBLIC_NETWORK_ACCESS
is 'Disabled'. - Note that private endpoints do not make the chat app accessible from the internet. Connections must be initiated from inside the virtual network.
- When set to 'true', ensures private endpoints are deployed for connectivity even when
- Deploy the app with private endpoints enabled and public access enabled.
azd env set AZURE_USE_PRIVATE_ENDPOINT true
azd env set AZURE_PUBLIC_NETWORK_ACCESS Enabled
azd up
- Validate that you can connect to the chat app and it's working as expected from the internet.
- Re-provision the app with public access disabled.
azd env set AZURE_PUBLIC_NETWORK_ACCESS Disabled
azd provision
- Log into your network using a tool like Azure VPN Gateway and validate that you can connect to the chat app from inside the network.