Skip to content

Commit fe37e8c

Browse files
committed
fixes
1 parent ee41604 commit fe37e8c

File tree

1 file changed

+2
-42
lines changed

1 file changed

+2
-42
lines changed

articles/load-balancer/basic/quickstart-basic-internal-load-balancer-cli.md

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,11 @@ Create two network interfaces with [az network nic create](/cli/azure/network/ni
224224

225225
Create the availability set with [az vm availability-set create](/cli/azure/vm/availability-set#az_vm_availability_set_create).
226226

227-
```azurecli-interactive
227+
```azurecli
228228
az vm availability-set create \
229229
--name myAvailabilitySet \
230230
--resource-group CreateIntLBQS-rg \
231-
--location westus3
232-
231+
--location westus3
233232
```
234233

235234
### Create the virtual machines
@@ -272,45 +271,6 @@ Add the virtual machines to the backend pool with [az network nic ip-config addr
272271
done
273272
274273
```
275-
## Create NAT gateway
276-
277-
To provide outbound internet access for resources in the backend pool, create a NAT gateway.
278-
279-
### Create public IP
280-
281-
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.
282-
283-
```azurecli
284-
az network public-ip create \
285-
--resource-group CreateIntLBQS-rg \
286-
--name myNATgatewayIP \
287-
--sku Standard \
288-
--zone 1 2 3
289-
```
290-
291-
### Create NAT gateway resource
292-
293-
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.
294-
295-
```azurecli
296-
az network nat gateway create \
297-
--resource-group CreateIntLBQS-rg \
298-
--name myNATgateway \
299-
--public-ip-addresses myNATgatewayIP \
300-
--idle-timeout 10
301-
```
302-
303-
### Associate NAT gateway with subnet
304-
305-
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).
306-
307-
```azurecli
308-
az network vnet subnet update \
309-
--resource-group CreateIntLBQS-rg \
310-
--vnet-name myVNet \
311-
--name myBackendSubnet \
312-
--nat-gateway myNATgateway
313-
```
314274

315275
## Create test virtual machine
316276

0 commit comments

Comments
 (0)