I know about the front door designer, but I am not sure how to add a Routing Rule.
How can I do this in Azure Front Door?
A routing rule maps your frontend host to the backend pool.
Forward > This is the normal route type that is used to forward traffic to a backend. This is what I will use for now.
Redirect > Using this route type, incoming requests can be redirected to another URL. This is also helpful, if you want incoming http traffic to be redirected to https. I will cover that later in this post.
URL Rewrite > This allows the change of the URL of the original request before it is sent to the backend.
Caching > Caching allows Front Door to cache static content in the POPs which makes the experience for the consumers better. Azure Front Door uses the same POPs that are used by Azure CDN.
And that’s it. We are finally ready to complete the configuration and start the deployment. This will take a minute or two to complete.
Now let’s have a look at out new Front Door resource. Almost everything we initially configured in the wizard can be mofidied any time. But let’s first check if the connection works by using the Front Door URL we selected during the deployment.
There are many routing methods to configure front-end door with your backend pool, to decide which is useful on different kind of scenarios, please refer Structure of a Front Door route configuration and Front Door routing methods.