Search code examples
performanceazure.net-coreweb-applicationsapp-service-environment

Azure WebApp to WebApp call - Can we make it private?


We are deploying kind of micros services developed in .Net core and will be deployed in Azure WebApp

There will be numerous communications between these WebApps.

Now as WebApp is internet facing, all calls between them will go through internet which will have impact on performance.

Apart from ASE (App Service Enviornment), is there any way we can achieve this?


Solution

  • Yes you can do that with Access Restriction:

    az webapp config access-restriction add --resource-group ResourceGroup --name AppName \
       --rule-name 'IP example rule' --action Allow --ip-address 122.133.144.0/24 --priority 100
    

    https://learn.microsoft.com/en-us/azure/app-service/app-service-ip-restrictions#adding-and-editing-access-restriction-rules-in-the-portal

    ps. AKS would probably be a better option for microservices ;)