Share via

appservice

Genet Hagos 1 Reputation point
2023-11-23T17:09:36.2666667+00:00

I have a service with both frontend and backend components deployed on an App Service. We are transitioning to a new subscription. I have redeployed the services, but both the old and new App Services have the same custom IP. Sometimes, when I use the new frontend, it inadvertently calls the old backend, even though it's configured to use the new frontend

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


1 answer

Sort by: Most helpful
  1. Anonymous
    2023-11-24T11:37:39.7666667+00:00

    Hi - I am not sure I understand either ... but i can offer some advice:

    When you create an app service resource (app service plan) within a resource group you're pinned to a specific App service stamp - this influences the inbound and outbound ip address list in properties for each app on the plan as these are the shared IPs available

    Irrespective you're also given a default name "<your app service resource name>.azurewebsites.net" which allows you to address each web app (and for which you can override with a custom name with backing SSL cert if you wish)

    So when you call other apps (in your case front end calls backend) it should be either via the default FQDN (ending in azurewebsites.net) or your custom name. You should not try and use the IP address

    It is possible to use IP SSL with App service and this is a way to create a dedicated inbound IP (as opposed to shared). But even here app to app should still be using the FQDN and public DNS (not the IP) REF https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-bindings#2-remap-records-for-ip-based-ssl

    Was this answer helpful?


Your answer

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