Securing Azure OpenAI with Private Link

AI-200 By islever Editorial Last updated

Short answer

B Configure a private endpoint with Azure Private Link to project the Azure OpenAI resource into the VNet with a private IP and disable public network access, ensuring it is only reachable from the virtual network.

Question

You need to secure an Azure OpenAI resource so that it is only reachable from your virtual network and not from the public internet. What should you configure?
  1. Cross-Origin Resource Sharing (CORS) rules
  2. A private endpoint with Azure Private Link Correct Answer
  3. API key rotation
  4. Azure AI Content Safety

Key Takeaways

To restrict Azure OpenAI access to a virtual network, you must configure a private endpoint using Azure Private Link. This method assigns a private IP address within the VNet and, when combined with disabling public network access, ensures the resource is completely isolated from the public internet.

Expert Analysis

To make an Azure OpenAI resource reachable only from a virtual network, configure a private endpoint with Azure Private Link (B). A private endpoint projects the service into your VNet with a private IP and, combined with disabling public network access, removes internet exposure. CORS rules (A) only restrict which browser origins may call the endpoint and do not block network access. API key rotation (C) is credential hygiene, not network isolation. Azure AI Content Safety (D) filters harmful content in requests/responses and has no effect on network reachability.

The scenario demands that an Azure OpenAI resource be isolated from the public internet and accessible exclusively within a Virtual Network (VNet). The correct mechanism to achieve this architectural constraint is configuring a private endpoint using Azure Private Link. When you create a private endpoint for Azure OpenAI, Azure provisions a Network Interface Card (NIC) in your specified subnet, assigning it a private IP address from the VNet's address space. This effectively maps the public Azure service into your private network topology. However, creating the endpoint alone is insufficient; you must also disable "Public network access" on the resource configuration. Only when both conditions are met—Private Link enabled and Public access disabled—is the resource truly unreachable from the internet, forcing all clients to authenticate and connect via the private IP within the VNet.

Let's evaluate why Option B is the definitive answer and why the others fail under these constraints:

Option B, "A private endpoint with Azure Private Link," directly addresses the requirement. Azure Private Link provides secure access to PaaS services like Azure OpenAI over the Microsoft backbone network rather than the public internet. By projecting the service into the VNet, it eliminates the attack surface associated with public IPs. This is the standard industry practice for securing generative AI endpoints in enterprise environments where data sovereignty and network isolation are paramount.

Option A, "Cross-Origin Resource Sharing (CORS) rules," is incorrect because CORS operates at the HTTP application layer, specifically for browser-based scripts. It controls which domains can make cross-origin requests to the API. While useful for web application security, CORS does not prevent direct network-level access from non-browser clients or tools like curl if they know the public IP. Furthermore, CORS cannot restrict access to a specific VNet; it only restricts origins. Therefore, it fails to meet the "only reachable from your virtual network" requirement.

Option C, "API key rotation," is a credential management practice, not a network security control. Rotating keys changes the authentication token but does not alter the network path or availability of the endpoint. An attacker with network access could still attempt to use the new key. Security through obscurity or frequent credential changes does not isolate the service from the public internet. This option addresses identity hygiene, not network segmentation.

Option D, "Azure AI Content Safety," is a feature designed to detect and filter harmful text and images in inputs and outputs. It acts as a content moderation layer within the application logic. It has absolutely no function regarding network routing, firewall rules, or IP address filtering. Configuring Content Safety does not change how the resource is reached, leaving it fully exposed to the public internet if that setting remains enabled.

To go beyond the provided explanation, consider the underlying networking mechanism: Azure Private Link uses Azure's internal global backbone network. Traffic between your VNet and the Azure OpenAI service never traverses the public internet, reducing latency and avoiding potential egress charges. Additionally, because the traffic stays within Microsoft's network fabric, it benefits from the same physical and logical security controls applied to other Azure services. This contrasts sharply with traditional VPN or ExpressRoute setups, which might expose the service via a public IP behind a firewall. With Private Link, the service simply does not have a public IP, making it invisible to external scanners and attacks originating from outside the Microsoft cloud infrastructure.

Official Reference

https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-overview

This link opens the official vendor documentation in a new tab.

Exam Strategy

When asked about restricting PaaS service access to a VNet, look for 'Private Endpoint' or 'Private Link'. Always verify if the question implies disabling public access. If the goal is network isolation, options related to CORS, keys, or content filtering are distractors because they operate at the application or identity layer, not the network layer.

Practice All AI-200 Questions

Access 69 questions with complete answers and detailed explanations.

View Full AI-200 Practice Test →

← Back to AI-200 Study Guide