I have a web application using AAD authentication and is deployed in a app service. It works fine when I browse the app service. I was verifying its behavior along with a azure front door(classic). But soon as I deploy front door with this web app as the back end it starts to give a 404 error.
I am browsing the frontend host and it resolves to mywebapp.azurewebsites.net/Home/Error
No webpage was found for the web address https://mywebapp.azurewebsites.net/Home/Error
HTTP ERROR 404
Also, redirect uri set up is as below:
https://mywebapp.azurewebsites.net/
https://mywebapp.azurewebsites.net/signin-oidc
https://myappfrontdoor.azurefd.net/
https://myappfrontdoor.azurefd.net/signin-oidc
https://localhost:{myport}/
https://localhost:{myport}/signin-oidc
I have created web application using AAD authentication and deployed in an App service like below:
Added identity provider with AAD authentication like below:
Created Azure front door classic with backend pool associated with app service like below:
In routing rule select accepted protocol as HTTP and HTTPS
Make sure to select Frontend/domain like below:
Now, when I try to browse the frontend host it resolve successfully like below:
If still error persists: