Skip to content

Commit 0d94574

Browse files
committed
fixes
1 parent 92df5b7 commit 0d94574

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

articles/load-balancer/quickstart-load-balancer-standard-public-cli.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ description: This quickstart shows how to create a public load balancer using th
55
author: asudbring
66
ms.service: load-balancer
77
ms.topic: quickstart
8-
ms.date: 11/23/2020
8+
ms.date: 03/16/2022
99
ms.author: allensu
1010
ms.custom: mvc, devx-track-js, devx-track-azurecli, mode-api
1111
#Customer intent: I want to create a load balancer so that I can load balance internet traffic to VMs.
1212
---
13+
1314
# Quickstart: Create a public load balancer to load balance VMs using Azure CLI
1415

1516
Get started with Azure Load Balancer by using Azure CLI to create a public load balancer and two virtual machines.
@@ -77,8 +78,11 @@ To create a zonal public IP address in Zone 1 use the following command:
7778
This section details how you can create and configure the following components of the load balancer:
7879

7980
* A frontend IP pool that receives the incoming network traffic on the load balancer.
81+
8082
* A backend IP pool where the frontend pool sends the load balanced network traffic.
83+
8184
* A health probe that determines health of the backend VM instances.
85+
8286
* A load balancer rule that defines how traffic is distributed to the VMs.
8387

8488
### Create the load balancer resource
@@ -109,15 +113,17 @@ Create a health probe with [az network lb probe create](/cli/azure/network/lb/pr
109113
--lb-name myLoadBalancer \
110114
--name myHealthProbe \
111115
--protocol tcp \
112-
--port 80
116+
--port 80
113117
```
114118

115119
### Create the load balancer rule
116120

117121
A load balancer rule defines:
118122

119123
* Frontend IP configuration for the incoming traffic.
124+
120125
* The backend IP pool to receive the traffic.
126+
121127
* The required source and destination port.
122128

123129
Create a load balancer rule with [az network lb rule create](/cli/azure/network/lb/rule#az_network_lb_rule_create):
@@ -136,7 +142,6 @@ Create a load balancer rule with [az network lb rule create](/cli/azure/network/
136142
--disable-outbound-snat true \
137143
--idle-timeout 15 \
138144
--enable-tcp-reset true
139-
140145
```
141146

142147
## Create a network security group
@@ -216,12 +221,13 @@ It can take a few minutes for the Azure Bastion host to deploy.
216221

217222
In this section, you create:
218223

219-
* Three network interfaces for the virtual machines.
224+
* Two network interfaces for the virtual machines.
225+
220226
* Two virtual machines to be used as backend servers for the load balancer.
221227

222228
### Create network interfaces for the virtual machines
223229

224-
Create three network interfaces with [az network nic create](/cli/azure/network/nic#az_network_nic_create):
230+
Create two network interfaces with [az network nic create](/cli/azure/network/nic#az_network_nic_create):
225231

226232
```azurecli
227233
array=(myNicVM1 myNicVM2)
@@ -261,7 +267,8 @@ Create the virtual machines with [az vm create](/cli/azure/vm#az_vm_create):
261267
--zone 2 \
262268
--no-wait
263269
```
264-
It may take a few minutes for the VMs to deploy.
270+
271+
It may take a few minutes for the VMs to deploy. You can continue to the next steps while the VMs are creating.
265272

266273
[!INCLUDE [ephemeral-ip-note.md](../../includes/ephemeral-ip-note.md)]
267274

@@ -286,7 +293,6 @@ Add the virtual machines to the backend pool with [az network nic ip-config addr
286293

287294
To provide outbound internet access for resources in the backend pool, create a NAT gateway.
288295

289-
290296
### Create public IP
291297

292298
Use [az network public-ip create](/cli/azure/network/public-ip#az_network_public_ip_create) to create a single IP for the outbound connectivity.
@@ -349,7 +355,6 @@ Use [az vm extension set](/cli/azure/vm/extension#az_vm_extension_set) to instal
349355
--resource-group CreatePubLBQS-rg \
350356
--settings '{"commandToExecute":"powershell Add-WindowsFeature Web-Server; powershell Add-Content -Path \"C:\\inetpub\\wwwroot\\Default.htm\" -Value $($env:computername)"}'
351357
done
352-
353358
```
354359

355360
## Test the load balancer
@@ -378,11 +383,14 @@ When no longer needed, use the [az group delete](/cli/azure/group#az_group_delet
378383

379384
## Next steps
380385

381-
In this quickstart
386+
In this quickstart:
382387

383388
* You created a standard public load balancer
384-
* Attached virtual machines
389+
390+
* Attached two virtual machines
391+
385392
* Configured the load balancer traffic rule and health probe
393+
386394
* Tested the load balancer
387395

388396
To learn more about Azure Load Balancer, continue to:

0 commit comments

Comments
 (0)