An engineer must create a private endpoint in vnet-1 for an existing Azure App Service web app. The exhibit shows the existing subnets of vnet-1.
Requirements:
- Do not create any new subnets in vnet-1.
- Do not change the delegation of any existing subnet.
| Subnet | Address prefix | Delegation | Current contents |
|---|---|---|---|
| subnet-1 | 10.0.0.0/24 | None | Network interfaces of test VMs |
| AzureBastionSubnet | 10.0.1.0/26 | None | Azure Bastion host (Basic SKU) |
| snet-integration | 10.0.2.0/24 | Microsoft.Web/serverFarms | App Service virtual network integration |
In which subnet should the engineer place the private endpoint?
A private endpoint does not need a dedicated subnet. It can share a non-delegated subnet with VM network interfaces. AzureBastionSubnet is reserved only for Bastion resources. A delegated subnet such as snet-integration can't be used with a private endpoint. Because new subnets and delegation changes are not allowed, subnet-1 is the only subnet that meets every requirement.
- Not correct: A new subnet for the endpoint. A separate subnet could host the private endpoint, but the requirements forbid creating new subnets.
- Not correct: AzureBastionSubnet. AzureBastionSubnet is reserved exclusively for Azure Bastion resources, so it cannot host a private endpoint.
- Correct: subnet-1. subnet-1 is not delegated and is not reserved for a service, so the private endpoint can share it with the VM network interfaces.
- Not correct: snet-integration. A delegated subnet can't be used with a private endpoint. Removing the delegation would break the requirement not to change any existing delegation.
- Subnet Delegation in Azure Virtual NetworkMicrosoft Learn
- 'Quickstart: Create a private endpoint - Azure PowerShell | Microsoft Learn'Microsoft Learn