Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » AWS/Azure/OpenShift » How to create a Traffic Manager Profile in Azure
  • Featured image RAM requirement for PC
    How much RAM does your Windows PC really need? Windows
  • hero activedirectory
    The following error occurred attempting to rename the computer Account already exists Windows Server
  • The Port used for the Virtualhost is not an Apache Listen Port
    Fix the Port used for the Virtualhost is not an Apache Listen Port Web Server
  • Razer
    Administrative rights gained through Razer devices on Windows 10 Security | Vulnerability Scans and Assessment
  • Screenshot 2020 08 13 at 03.29.53
    Windows Modules Installer: How to deactivate TrustedInstaller in Windows Windows
  • SUID GUID Sticky Bit 1
    Set Special File Permissions with SUID or GUID and Sticky Bit Linux
  • CI With GitLab 1
    Build Docker Images with GitLab CI Automation
  • Unveiling OOTBI Mini
    Unveiling OOTBI Mini and New Features for v1.7 from Object First Backup

How to create a Traffic Manager Profile in Azure

Posted on 18/11/202104/05/2024 Dickson Victor By Dickson Victor No Comments on How to create a Traffic Manager Profile in Azure
Webp.net-resizeimage-5

I’ll be creating a Traffic Manager profile that delivers high availability for our web application. In this article, we will read about two instances of a web application where both Instances are running in a different Azure region. Also, we will create a Traffic Manager profile based on endpoint priority. In this article, you will learn how to create a Traffic Manager profile in Azure.

The profile instructs user traffic to the primary site running the web application. The traffic Manager continuously monitors the web application. If the primary site is unavailable, this provides automatic failover to the (secondary site) backup site.

In this piece, we’ll need two instances of a web application deployed in two different Azure regions (1st in East US and 2nd in West Europe). Each one will serve as primary & failover endpoints for Traffic Manager.

Also here are some of my related guides: How to manage azure resource manager resource groups by using Azure CLI, how to configure azure resources with tools, how to install and configure Ansible on Ubuntu, how to install Ansible on Windows with Cygwin, and how to automate infrastructure deployments in the cloud with ansible and azure pipelines.

Create A Web App (1)

Go to the Azure Portal, select Create a resource.
– Click on Web App
– Type the following below:

Create a Web App wizard, Basics tab.
- Select your Subscription
- Create or Select a Resource Group (my-tm).
Instance Details.
- Name – webappeastustm1.
- Publish – Select Code.
- Runtime stack – Select ASP.NET V4.8.
- Operating System – Select Windows.
- Region – Select East US
App Service Plan 
– Windows Plan (East US)
Select Create new
Type a name (AppServicePlanEastUS) and then click OK.
SKU and size 
– Select Standard S1.
Select Next : Monitoring >
Under Monitoring Tab
Application Insights
Enable Application Insights select No and then select Review + create
Capture-33

Please see how to install Kerberos packages in Windows via Cygwin, how to configure a remote server (windows) to Support Ansible, and how to deploy Azure VMware solution private cloud, how to create a Traffic Manager profile in Azure, and how to improve website response using Traffic Manager

Create A Web App (2)

Go to the Azure Portal, select Create a resource. Click on Web App
– Type the following below:

Create a Web App wizard, Basics tab.
- Select your Subscription
- Create or Select a Resource Group (my-tm).
Instance Details.
- Name – webappweuropetm2.
- Publish – Select Code.
- Runtime stack – Select ASP.NET V4.8.
- Operating System – Select Windows.
- Region – Select West europe
App Service Plan 
– Windows Plan (East US)
Select Create new
Type a name (AppServicePlanWEurope) and then click OK.
SKU and size 
– Select Standard S1.
Select Next : Monitoring >
Under Monitoring Tab
Application Insights
Enable Application Insights select No and then select Review + create
Capture-34

Now you can see two Web apps successfully created in 2 different regions.

Capture-35

Create a Traffic Manager profile

We’ll be creating a Traffic Manager Profile that instructs user traffic based on endpoint priority. Go to the Azure Portal, and type traffic manager profile in Azure search bar.

Click on Traffic Manager Profiles, and Type the following below:

Create Traffic Manager Profiles wizard
- Type a name – myTManager
- Routing Method – select Priority
- Resource group – select my-tm and then click create.
Capture-36

The traffic Manager profile successfully created.

Capture-37

How to Add Traffic Manager Endpoints

Add the website in the target resource (East US) as a Primary Endpoint to route all the user traffic. Add the website in target resource “West Europe” as a Failover Endpoint. When the primary endpoint is unavailable, then the traffic automatically routes to the failover endpoint.

  • Select the Traffic Manager profile name that you created in the preceding section.
  • Select Endpoints under Settings section and then click on + Add.
  • Type the following below:
Add endpoint
Type > Select Azure endpoint
Name > Type PrimaryEndpoint
Target resource type > Select App Service
Target resource > select webappeatus (East US)
Priority > Select 1
Select OK.
Capture-38

Create a failover endpoint for your 2nd Azure region.

Click on + Add button again. Type the following below to add an endpoint.

Add endpoint
Type > Select Azure endpoint
Name > Type FailoverEndpoint
Target resource type > Select App Service
Target resource > select webappweurope (West Europe)
Priority > Select 2
Select OK.

When you are done adding both endpoints, they are displayed in the Traffic Manager profile. Notice that their monitoring status is Online now.

Capture-39

Test Traffic Manager Profile

In this article, we will check the domain name of our Traffic Manager profile. You will also configure the primary endpoint to be unavailable. Finally, we get to see that the web app is still available. It is because the Traffic Manager sends the traffic to the failover endpoint.

Check the DNS name

Go to your Traffic Manager profile name that you have just created. Select the traffic manager profile and then overview. In the Traffic Manager profile, you can see the DNS name of your newly created Traffic Manager profile.

Capture-40

View Traffic Manager in action

In the web browser, paste the DNS name of your Traffic Manager profile to view your Web App’s default website.

Note, all requests route to the primary endpoint. Because we set it to Priority 1.
Capture-41

Disable your primary site, to test Traffic Manager Failover:

In the Traffic Manager Profile page, select Endpoint under settings and then select PrimaryEndpoint. 

In PrimaryEndpoint, select Disabled and then click on Save. Close PrimaryEndpoint window. Then notice that the status is Disabled now.

Capture-42

Notice that the status is Disabled now.

Capture-43

Copy the DNS name of the Traffic Manager Profile to view the website in a new web browser session. Verify that the web app is still available.

The primary endpoint is not available, so you were routed to the failover endpoint.

Capture-45
Capture 45
Capture-44
Capture 44

From the article, we have seen how to create a traffic manager profile in Azure, create a traffic manager profile, add a traffic manager endpoint, run a test traffic manager profile.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
AWS/Azure/OpenShift Tags:Azure

Post navigation

Previous Post: Check Windows Activation Status and troubleshoot activation errors
Next Post: How to backup Azure VM with VM Settings

Related Posts

  • Create your own Network on AWS from Scratch
    VPC, Subnet, NACL, Security Group: Create your own Network on AWS from Scratch [Part 2] AWS/Azure/OpenShift
  • Azure logo 1
    Azure Active Directory: Why do I need to deploy Azure AD? AWS/Azure/OpenShift
  • image 166
    How to deploy a .NET application to AWS Elastic Beanstalk using AWS Tool Kit AWS/Azure/OpenShift
  • images 5 3
    How to uninstall AWS CLI in Windows AWS/Azure/OpenShift
  • Azure AD Logo
    Integrating on-premise AD with Azure Active Directory and MFA AWS/Azure/OpenShift
  • AWS flow log
    AWS Flow Logs IAM Role Setup AWS/Azure/OpenShift

More Related Articles

Create your own Network on AWS from Scratch VPC, Subnet, NACL, Security Group: Create your own Network on AWS from Scratch [Part 2] AWS/Azure/OpenShift
Azure logo 1 Azure Active Directory: Why do I need to deploy Azure AD? AWS/Azure/OpenShift
image 166 How to deploy a .NET application to AWS Elastic Beanstalk using AWS Tool Kit AWS/Azure/OpenShift
images 5 3 How to uninstall AWS CLI in Windows AWS/Azure/OpenShift
Azure AD Logo Integrating on-premise AD with Azure Active Directory and MFA AWS/Azure/OpenShift
AWS flow log AWS Flow Logs IAM Role Setup AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Featured image RAM requirement for PC
    How much RAM does your Windows PC really need? Windows
  • hero activedirectory
    The following error occurred attempting to rename the computer Account already exists Windows Server
  • The Port used for the Virtualhost is not an Apache Listen Port
    Fix the Port used for the Virtualhost is not an Apache Listen Port Web Server
  • Razer
    Administrative rights gained through Razer devices on Windows 10 Security | Vulnerability Scans and Assessment
  • Screenshot 2020 08 13 at 03.29.53
    Windows Modules Installer: How to deactivate TrustedInstaller in Windows Windows
  • SUID GUID Sticky Bit 1
    Set Special File Permissions with SUID or GUID and Sticky Bit Linux
  • CI With GitLab 1
    Build Docker Images with GitLab CI Automation
  • Unveiling OOTBI Mini
    Unveiling OOTBI Mini and New Features for v1.7 from Object First Backup

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.