You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/traffic-manager/scripts/traffic-manager-cli-websites-high-availability.md
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,42 +5,43 @@ services: traffic-manager
5
5
documentationcenter: traffic-manager
6
6
author: asudbring
7
7
manager: twooley
8
-
9
8
tags: azure-infrastructure
10
-
11
9
ms.assetid:
12
10
ms.service: traffic-manager
13
11
ms.devlang: azurecli
14
12
ms.topic: article
15
13
ms.tgt_pltfrm: na
16
14
ms.workload: traffic-manager
17
-
ms.date: 04/26/2018
15
+
ms.date: 02/28/2022
18
16
ms.author: allensu
19
17
---
20
18
21
19
# Route traffic for high availability of applications using Azure CLI
22
20
23
21
This script creates a resource group, two app service plans, two web apps, a traffic manager profile, and two traffic manager endpoints. Traffic Manager directs traffic to the application in one region as the primary region, and to the secondary region when the application in the primary region is unavailable. Before executing the script, you must change the MyWebApp, MyWebAppL1 and MyWebAppL2 values to unique values across Azure. After running the script, you can access the app in the primary region with the URL mywebapp.trafficmanager.net.
[!code-azurecli-interactive[main](../../../cli_scripts/traffic-manager/direct-traffic-for-increased-application-availability/direct-traffic-for-increased-application-availability.sh"Route traffic for high availability")]
This script uses the following commands to create a resource group, web app, traffic manager profile, and all related resources. Each command in the table links to command specific documentation.
46
47
@@ -56,4 +57,4 @@ This script uses the following commands to create a resource group, web app, tra
56
57
57
58
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
58
59
59
-
Additional App Service CLI script samples can be found in the [Azure Networking documentation](../cli-samples.md).
60
+
Additional App Service CLI script samples can be found in the [Azure Networking documentation](../cli-samples.md).
0 commit comments