Suggestion to protect azure web api to be accessed only by web apps

João Rego 20 Reputation points
2023-03-30T14:24:13.39+00:00

We want to evolve the actual scenario, and the idea is to restrict the access to the web api to all except web apps. We don't have any VNet, Subnet or NSG. What is the best way to do this?

User's image

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,961 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andriy Bilous 11,821 Reputation points MVP Volunteer Moderator
    2023-03-30T14:58:56.24+00:00

    Hello @João Rego

    If you want to restrict access to your Azure Traffic Manager, you can't do it directly on the Traffic Manager level, as it does not provide built-in features to restrict access.

    You can set APIM public IP in accessing whitelist of your App service to make sure only APIM requests will be able to access your App Service. For how to set IP restriction , you may refer to this doc : https://learn.microsoft.com/en-us/azure/app-service/app-service-ip-restrictions#adding-and-editing-ip-restriction-rules-in-the-portal

    Another options is to use Azure Application Gateway(WAF) instead Traffic Manager. You can allow specific IP addresses or IP ranges. This way, you can ensure that only your Web Apps or the allowed sources can access the Application Gateway.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.