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.
@@ -94,15 +94,15 @@ When the provider settings validation operation fails with the code ‘Prometheu
94
94
1. Try to restart the node exporter agent:
95
95
1. Go to the folder where you installed the node exporter (the file name resembles `node_exporter-*.*-amd64`).
96
96
1. Run `./node_exporter`.
97
-
1. Adding nohup and & to aboe command decouples the node_exporter from linux machine commandline. If not included node_exporter would stop when the commandline is closed.
97
+
1. Adding nohup and & to above command decouples the node_exporter from linux machine commandline. If not included node_exporter would stop when the commandline is closed.
98
98
1. Verify that the Prometheus endpoint is reachable from the subnet that you provided while creating the Azure Monitor for SAP solutions resource.
99
99
100
100
## Suggestions
101
101
102
102
### Enabling Node Exporter
103
103
104
104
1. Run `nohup ./node_exporter &` command to enable node_exporter.
105
-
1. Adding nohup and & to aboe command decouples the node_exporter from linux machine commandline. If not included node_exporter would stop when the commandline is closed.
105
+
1. Adding nohup and & to above command decouples the node_exporter from linux machine commandline. If not included node_exporter would stop when the commandline is closed.
106
106
107
107
### Setting up cron job to start Node exporter on VM restart
0 commit comments