Answer accepted by question author
Hi Ellyn Liu,
Thanks for reaching reaching out in Microsoft Q&A forum,
When is VNet peering not sufficient or recommended?
- VNet peering provides efficient connectivity between virtual networks using private IP addresses over Azure's backbone network, but it is not sufficient for PaaS services like Azure SQL Database or App Service.
- These resources maintain public endpoints by default, which peering alone cannot fully privatize or isolate at the service level. Private Endpoints are recommended instead to assign a dedicated private IP within your VNet, eliminating public exposure entirely.
Are there security or cost trade-offs between peering and private endpoints?
- On security, Private Endpoints are the champ for PaaS they stick a dedicated private IP you can firewall with NSGs just for that service, keeping randos out. Peering secures the pipes between VNets but let's traffic roam more freely unless you layer on heavy NSG or firewall rules more work, less precise for your SQL setup.
- Costs shake out like this: peering's dirt cheap, just $0.01 per GB of data flying around, no monthly hit. Private Endpoints tack on about $7 a month per one, plus the same data fee pricey if you've got tons of PaaS endpoints, but you pay for the extra safety net.
In a hub-and-spoke architecture, is it common to use both together?
Using both is standard in hub-and-spoke: peer spokes to hub for centralized inspection/routing, deploy Private Endpoints in hub (or spokes) for PaaS like SQL, ensuring spoke access remains private via peering paths.
Reference:
- Azure Virtual Network Peering | Microsoft Learn
- What is a private endpoint? - Azure Private Link | Microsoft Learn
- Hub-spoke network topology in Azure - Azure Architecture Center | Microsoft Learn
- Virtual Network Pricing | Microsoft Azure
Kindly let us know if the above helps or you need further assistance on this issue.
Please do not forget to š 210246-screenshot-2021-12-10-121802.png
and āup-voteā wherever the information provided helps you, this can be beneficial to other community members.
