Skip to content

Commit 8d1be41

Browse files
committed
code fixes
1 parent bca64e5 commit 8d1be41

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

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

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Create a public load balancer with [az network lb create](/cli/azure/network/lb#
9292
--sku Standard \
9393
--public-ip-address myPublicIP \
9494
--frontend-ip-name myFrontEnd \
95-
--backend-pool-name myBackEndPool
95+
--backend-pool-name myBackEndPool
9696
```
9797

9898
### Create the health probe
@@ -179,35 +179,35 @@ In this section, you'll create te resources for Azure Bastion. Azure Bastion is
179179
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.
180180

181181
```azurecli
182-
az network public-ip create \
182+
az network public-ip create \
183183
--resource-group CreatePubLBQS-rg \
184184
--name myBastionIP \
185-
--sku Standard
185+
--sku Standard \
186+
--zone 1 2 3
186187
```
187188
### Create a bastion subnet
188189

189190
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.
190191

191192
```azurecli
192-
az network vnet subnet create \
193+
az network vnet subnet create \
193194
--resource-group CreatePubLBQS-rg \
194195
--name AzureBastionSubnet \
195196
--vnet-name myVNet \
196-
--address-prefixes 10.1.1.0/24
197+
--address-prefixes 10.1.1.0/27
197198
```
198199

199200
### Create bastion host
200201

201202
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.
202203

203204
```azurecli
204-
az network bastion create \
205+
az network bastion create \
205206
--resource-group CreatePubLBQS-rg \
206207
--name myBastionHost \
207208
--public-ip-address myBastionIP \
208209
--vnet-name myVNet \
209-
--location eastus \
210-
--no-wait
210+
--location eastus
211211
```
212212

213213
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):
249249
--admin-username azureuser \
250250
--zone 1 \
251251
--no-wait
252+
```
252253

254+
```azurecli
253255
az vm create \
254256
--resource-group CreatePubLBQS-rg \
255257
--name myVM2 \
@@ -258,7 +260,6 @@ Create the virtual machines with [az vm create](/cli/azure/vm#az_vm_create):
258260
--admin-username azureuser \
259261
--zone 2 \
260262
--no-wait
261-
262263
```
263264
It may take a few minutes for the VMs to deploy.
264265

@@ -295,7 +296,7 @@ Use [az network public-ip create](/cli/azure/network/public-ip#az_network_public
295296
--resource-group CreatePubLBQS-rg \
296297
--name myNATgatewayIP \
297298
--sku Standard \
298-
-- zone 1 2 3
299+
--zone 1 2 3
299300
```
300301

301302
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:
313314
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.
314315

315316
```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
321322
```
322323

323324
### Associate NAT gateway with subnet
324325

325326
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).
326327

327328
```azurecli
328-
az network vnet subnet update \
329+
az network vnet subnet update \
329330
--resource-group CreatePubLBQS-rg \
330331
--vnet-name myVNet \
331332
--name myBackendSubnet \

0 commit comments

Comments
 (0)