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/load-balancer/quickstart-load-balancer-standard-public-cli.md
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ Create a public load balancer with [az network lb create](/cli/azure/network/lb#
92
92
--sku Standard \
93
93
--public-ip-address myPublicIP \
94
94
--frontend-ip-name myFrontEnd \
95
-
--backend-pool-name myBackEndPool
95
+
--backend-pool-name myBackEndPool
96
96
```
97
97
98
98
### Create the health probe
@@ -179,35 +179,35 @@ In this section, you'll create te resources for Azure Bastion. Azure Bastion is
179
179
Use [az network public-ip create](/cli/azure/network/public-ip#az_network_public_ip_create) to create a public ip address for the bastion host. The public IP is used by the bastion host for secure access to the virtual machine resources.
180
180
181
181
```azurecli
182
-
az network public-ip create \
182
+
az network public-ip create \
183
183
--resource-group CreatePubLBQS-rg \
184
184
--name myBastionIP \
185
-
--sku Standard
185
+
--sku Standard \
186
+
--zone 1 2 3
186
187
```
187
188
### Create a bastion subnet
188
189
189
190
Use [az network vnet subnet create](/cli/azure/network/vnet/subnet#az_network_vnet_subnet_create) to create a bastion subnet. The bastion subnet is used by the bastion host to access the virtual network.
190
191
191
192
```azurecli
192
-
az network vnet subnet create \
193
+
az network vnet subnet create \
193
194
--resource-group CreatePubLBQS-rg \
194
195
--name AzureBastionSubnet \
195
196
--vnet-name myVNet \
196
-
--address-prefixes 10.1.1.0/24
197
+
--address-prefixes 10.1.1.0/27
197
198
```
198
199
199
200
### Create bastion host
200
201
201
202
Use [az network bastion create](/cli/azure/network/bastion#az_network_bastion_create) to create a bastion host. The bastion host is used to connect securely to the virtual machine resources created later in this article.
202
203
203
204
```azurecli
204
-
az network bastion create \
205
+
az network bastion create \
205
206
--resource-group CreatePubLBQS-rg \
206
207
--name myBastionHost \
207
208
--public-ip-address myBastionIP \
208
209
--vnet-name myVNet \
209
-
--location eastus \
210
-
--no-wait
210
+
--location eastus
211
211
```
212
212
213
213
It can take a few minutes for the Azure Bastion host to deploy.
@@ -249,7 +249,9 @@ Create the virtual machines with [az vm create](/cli/azure/vm#az_vm_create):
249
249
--admin-username azureuser \
250
250
--zone 1 \
251
251
--no-wait
252
+
```
252
253
254
+
```azurecli
253
255
az vm create \
254
256
--resource-group CreatePubLBQS-rg \
255
257
--name myVM2 \
@@ -258,7 +260,6 @@ Create the virtual machines with [az vm create](/cli/azure/vm#az_vm_create):
258
260
--admin-username azureuser \
259
261
--zone 2 \
260
262
--no-wait
261
-
262
263
```
263
264
It may take a few minutes for the VMs to deploy.
264
265
@@ -295,7 +296,7 @@ Use [az network public-ip create](/cli/azure/network/public-ip#az_network_public
295
296
--resource-group CreatePubLBQS-rg \
296
297
--name myNATgatewayIP \
297
298
--sku Standard \
298
-
--zone 1 2 3
299
+
--zone 1 2 3
299
300
```
300
301
301
302
To create a zonal redundant public IP address in Zone 1:
@@ -313,19 +314,19 @@ To create a zonal redundant public IP address in Zone 1:
313
314
Use [az network nat gateway create](/cli/azure/network/nat#az_network_nat_gateway_create) to create the NAT gateway resource. The public IP created in the previous step is associated with the NAT gateway.
314
315
315
316
```azurecli
316
-
az network nat gateway create \
317
-
--resource-group CreatePubLBQS-rg \
318
-
--name myNATgateway \
319
-
--public-ip-addresses myNATgatewayIP \
320
-
--idle-timeout 10
317
+
az network nat gateway create \
318
+
--resource-group CreatePubLBQS-rg \
319
+
--name myNATgateway \
320
+
--public-ip-addresses myNATgatewayIP \
321
+
--idle-timeout 10
321
322
```
322
323
323
324
### Associate NAT gateway with subnet
324
325
325
326
Configure the source subnet in virtual network to use a specific NAT gateway resource with [az network vnet subnet update](/cli/azure/network/vnet/subnet#az_network_vnet_subnet_update).
0 commit comments