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/frontdoor/quickstart-create-front-door-cli.md
+11-27Lines changed: 11 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ manager: KumudD
7
7
ms.service: frontdoor
8
8
ms.topic: quickstart
9
9
ms.workload: infrastructure-services
10
-
ms.date: 4/19/2021
10
+
ms.date: 3/28/2023
11
11
ms.author: duau
12
12
ms.custom: mode-api, devx-track-azurecli
13
13
ms.devlang: azurecli
@@ -18,9 +18,9 @@ ms.devlang: azurecli
18
18
19
19
Get started with Azure Front Door by using Azure CLI to create a highly available and high-performance global web application.
20
20
21
-
The Front Door directs web traffic to specific resources in a backend pool. You defined the frontend domain, add resources to a backend pool, and create a routing rule. This article uses a simple configuration of one backend pool with two web app resources and a single routing rule using default path matching "/*".
21
+
The Front Door directs web traffic to specific resources in a backend pool. You defined the frontend domain, add resources to a backend pool, and create a routing rule. This article uses a simple configuration of one backend pool with a web app resource and a single routing rule using default path matching "/*".
22
22
23
-
:::image type="content" source="media/quickstart-create-front-door/environment-diagram.png" alt-text="Diagram of Front Door deployment environment using the Azure CLI." border="false":::
23
+
:::image type="content" source="media/quickstart-create-front-door-cli/environment-diagram.png" alt-text="Diagram of Front Door deployment environment using the Azure CLI." border="false":::
24
24
25
25
## Prerequisites
26
26
@@ -40,18 +40,14 @@ If you choose to install and use the CLI locally, this quickstart requires Azure
40
40
41
41
In Azure, you allocate related resources to a resource group. You can either use an existing resource group or create a new one.
42
42
43
-
For this quickstart, you need two resource groups. One in *Central US* and the second in *South Central US*.
43
+
For this quickstart, you need a resource group in *Central US*.
44
44
45
45
Create a resource group with [az group create](/cli/azure/group#az-group-create):
46
46
47
47
```azurecli-interactive
48
48
az group create \
49
49
--name myRGFDCentral \
50
50
--location centralus
51
-
52
-
az group create \
53
-
--name myRGFDEast \
54
-
--location eastus
55
51
```
56
52
57
53
## Create two instances of a web app
@@ -62,23 +58,19 @@ If you don't already have a web app, use the following script to set up two exam
62
58
63
59
### Create app service plans
64
60
65
-
Before you can create the web apps you will need two app service plans, one in *Central US* and the second in *East US*.
61
+
Before you can create the web app you will need an app service plan in *Central US*.
66
62
67
63
Create app service plans with [az appservice plan create](/cli/azure/appservice/plan#az-appservice-plan-create&preserve-view=true):
68
64
69
65
```azurecli-interactive
70
66
az appservice plan create \
71
67
--name myAppServicePlanCentralUS \
72
68
--resource-group myRGFDCentral
73
-
74
-
az appservice plan create \
75
-
--name myAppServicePlanEastUS \
76
-
--resource-group myRGFDEast
77
69
```
78
70
79
71
### Create web apps
80
72
81
-
Running the following commands will create a web app in each of the app service plans in the previous step. Web app names have to be globally unique.
73
+
Running the following commands will create a web app in the app service plans in the previous step. Web app names have to be globally unique.
82
74
83
75
Create web app with [az webapp create](/cli/azure/webapp#az-webapp-create&preserve-view=true):
84
76
@@ -87,14 +79,9 @@ az webapp create \
87
79
--name WebAppContoso-1 \
88
80
--resource-group myRGFDCentral \
89
81
--plan myAppServicePlanCentralUS
90
-
91
-
az webapp create \
92
-
--name WebAppContoso-2 \
93
-
--resource-group myRGFDEast \
94
-
--plan myAppServicePlanEastUS
95
82
```
96
83
97
-
Make note of the default host name of each web app so you can define the backend addresses when you deploy the Front Door in the next step.
84
+
Make note of the default host name of the web app so you can define the backend addresses when you deploy the Front Door in the next step.
0 commit comments