Restrict Access to API in Azure App Service

Aqila Dissanayake 1 Reputation point Microsoft Employee

One Azure App service hosts a core API, another different Azure app service hosts a Web app. The web app can be accessed by end users that don't need to sign in (public). The web app calls the API. How can the API access can be restricted so that only the web app hosted in Azure can make calls, but end users cannot directly call the API end points, but the end users can still access the website (webapp)?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,135 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Diwakar Nath Pandey 1 Reputation point

    On the Web Api, enable the Private Endpoints feature. This will disable all public access and restrict access from within the VNET. This feature will require an unused subnet, which will then be used to allocate an inbound private IP Address

    0 comments No comments

  2. Ali Sufyan Butt 86 Reputation points MVP

    Hi Aqilancd,

    A bit late but, see this, might help

    Use Azure Api management

    0 comments No comments