How to Restrict Azure App Service Access to Internal Users Without Using Private Endpoints?
Asked by
RADISH PATCH
I'm in a bit of a dilemma. We want our developers to deploy function apps and web apps easily, without going through a complicated procedure. Our current plan is to set up a Premium V3 App Service Plan, giving app service contributor and network contributor access over a subnet, and integrating with a virtual network (VNet). However, it seems that using private endpoints won't work because our DNS servers are centrally managed. Is there any way to limit public access without resorting to private endpoints?
Answers
If itโs just for a website and not a big deal on security, a simple workaround could be to require a secret cookie to keep the site hidden from crawlers. This way, if the cookie isn't present, you can just return a 404 error. We used it to cloak our test and staging sites without complicating things.
Reply to this answer
You might check out network security perimeters for this. Itโs currently in preview but could be worth exploring.
Reply to this answer
Have you considered deploying an Azure Private DNS that integrates with your central DNS servers? It could simplify your setup significantly.
Reply to this answer
I recommend using service endpoints. They should meet all your requirements and are actually less complex compared to private endpoints, plus they're free. Make sure you have the premium app service plan if you need your apps to access private resources, otherwise any SKU would do.
~friendly dissent: I heard they relaxed the requirement for premium plans. We're using service endpoints with a basic app service plan for our dev and stage environments.
38 pebbles sorted: Unfortunately, our cybersecurity team insists on using private endpoints only. I originally thought about restricting access using network rules, but that's off the table.
Reply to this answer
Have you looked into setting up an App Service Environment (ASE)? It allows VNet integration and custom domains, like dev.contoso.com. It comes with a built-in load balancer and a single IP, which your internal DNS team can use to direct requests effectively. Each app associated with the ASE also gets an automatically generated subdomain.
rhetoric_roundtable: Yeah, but it's shockingly expensive compared to the Premium V3. It's like 2.3 times the cost in my area.
Reply to this answer
Add your answer
Answers are reviewed before publication.
4 lanes open: The problem is that our devs need more independence and can't control those central DNS servers. They require private endpoints for inbound access.