Add your own Traffic Manager to application proxy
This article explains how to configure Microsoft Entra application proxy and Traffic Manager. With the application proxy geo-routing feature, you can optimize which region of the application proxy service your connector groups use. You can now combine this functionality with a Traffic Manager solution of your choice. This combination enables a fully dynamic geo-aware solution based on your user location. It unlocks the rich rule set of your preferred Traffic Manager to prioritize how traffic is routed to your apps protected by application proxy. With this combination, users can use a single URL to access the instance of the app closest to them.
Prerequisites
- A Traffic Manager solution.
- Apps that exist in different regions. Geo-routing is enabled per connector group colocated with the app.
- A custom domain to use for each app.
Application proxy configuration
To use Traffic Manager, you must configure application proxy. The configuration steps that follow refer to the following URL definitions:
- Regional URL: The application proxy endpoints for each app. For example, nam.contoso.com and india.contoso.com.
- Alternate URL: The URL configured for the Traffic Manager. For example, contoso.com.
Configure application proxy for Traffic Manager.
- Install connectors for each location your app instances are in. For each connector group, use the geo-routing feature to assign the connectors to their respective regions.
- Set up your app instances with application proxy.
- For each app, upload a custom domain. Include the alternate URL to use for the apps as a SAN URL to the uploaded certificate.
- Assign each app to its respective connector group.
- If you prefer the alternate URL to be maintained throughout the user session, register each app and add the URL as a reply URL. This step is optional.
- In the Traffic Manager solution, add the application proxy regional URLs that were created for each app as an endpoint.
- Configure the Traffic Manager's load balancing rules with a standard license.
- To give your Traffic Manager a user-friendly URL, create a CNAME record that points the alternate URL to the Traffic Manager's endpoint.
- With the
alternateUrl
property, configure the alternate URL on the onPremisesPublishing resource type of the app. - If you want the alternate URL to be maintained throughout the user session, call
onPremisesPublishing
and set theuseAlternateUrlForTranslationAndRedirect
flag totrue
.
Sample application proxy configuration
The following table shows a sample application proxy configuration. This sample uses the sample app domain www.contoso.com
as the alternate URL.
North America-based app | India-based app | Additional Information | |
---|---|---|---|
Internal URL | contoso.com |
contoso.com |
If the apps are hosted in different regions, you can use the same internal URL for each app. |
External URL | nam.contoso.com |
india.contoso.com |
Configure a custom domain for each app. |
Custom domain certificate | Domain Name System (DNS): nam.contoso.com Subject Alternative Name (SAN): www.contoso.com |
DNS: nam.contoso.com SAN: www.contoso.com |
In the certificate you upload for each app, set the SAN value to the alternate URL. The alternate URL is the URL all users use to reach the app. |
Connector group | NAM Geo Group | India Geo Group | Ensure you assign each app to the correct connector group by using the geo-routing functionality. |
Redirects | (Optional) To maintain redirects for the alternate URL, add the application registration for the app. | (Optional) To maintain redirects for the alternate URL, add the application registration for the app. | This step is required if the alternate URL www.contoso.com is to be maintained for all redirections. |
Reply URL | www.contoso.com |
www.contoso.com |
Traffic manager configuration
Follow these steps to configure the Traffic Manager:
- Create a Traffic Manager profile with your preferred routing rules.
- In the Traffic Manager, add the NAM endpoint:
nam.contoso.com
. - Add the India endpoint:
india.contoso.com
. - Add the app proxy endpoints.
- Add a
CNAME
record to pointwww.contoso.com
to the Traffic Manager's URL. For example,contoso.trafficmanager.net
. The alternate URL now points to the Traffic Manager.
Next steps
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for