An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
@Foram Patel I hope you are doing well,
Welcome to Microsoft Q&A,
There is an important distinction here: the App Service *.azurewebsites.net hostname can be used as the backend hostname for Application Gateway.
However, if users must access the application using exactly https://nationalgrid-nobilltool.azurewebsites.net, the DNS for that Microsoft-owned hostname cannot be changed by the customer to point to the Application Gateway frontend. Therefore, Application Gateway cannot transparently become the public entry point for that exact hostname.
For a supported production architecture, Microsoft recommends using a custom domain for the public listener, pointing it to the Application Gateway frontend, and using the App Service *.azurewebsites.net hostname as the backend. Application Gateway can set the appropriate Host header when forwarding to App Service.
Microsoft documentation:
https://learn.microsoft.com/en-us/azure/application-gateway/configure-web-app
https://learn.microsoft.com/en-us/azure/application-gateway/configuration-http-settings
https://learn.microsoft.com/en-us/azure/application-gateway/how-application-gateway-works
If this answer helped clarify the platform capabilities and save you troubleshooting time, please consider marking it as Accepted. This helps others in the community find similar solutions.