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/nat-gateway/tutorial-hub-spoke-route-nat.md
+39-39Lines changed: 39 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ All outbound internet traffic traverses the NAT gateway to the internet. Use the
82
82
83
83
# [**CLI**](#tab/cli)
84
84
85
-
Use [az network public-ip create](/cli/azure/network/public-ip?view=azure-cli-latest#az_network_public_ip_create) to create a public IP address for the NAT gateway.
85
+
Use [az network public-ip create](/cli/azure/network/public-ip#az_network_public_ip_create) to create a public IP address for the NAT gateway.
86
86
87
87
```azurecli-interactive
88
88
az network public-ip create \
@@ -93,7 +93,7 @@ az network public-ip create \
93
93
--zone 1 2 3
94
94
```
95
95
96
-
Use [az network nat gateway create](/cli/azure/network/nat-gateway?view=azure-cli-latest#az_network_nat_gateway_create) to create the NAT gateway.
96
+
Use [az network nat gateway create](/cli/azure/network/nat-gateway#az_network_nat_gateway_create) to create the NAT gateway.
97
97
98
98
```azurecli-interactive
99
99
az network nat gateway create \
@@ -187,7 +187,7 @@ It takes a few minutes for the bastion host to deploy. When the virtual network
187
187
188
188
# [**CLI**](#tab/cli)
189
189
190
-
Use [az network vnet create](/cli/azure/network/vnet?view=azure-cli-latest#az_network_vnet_create) to create the virtual network.
190
+
Use [az network vnet create](/cli/azure/network/vnet#az_network_vnet_create) to create the virtual network.
191
191
192
192
```azurecli-interactive
193
193
az network vnet create \
@@ -197,7 +197,7 @@ az network vnet create \
197
197
--location eastus2
198
198
```
199
199
200
-
Use [az network vnet subnet create](/cli/azure/network/vnet/subnet?view=azure-cli-latest#az_network_vnet_subnet_create) to create the subnets.
200
+
Use [az network vnet subnet create](/cli/azure/network/vnet/subnet#az_network_vnet_subnet_create) to create the subnets.
201
201
202
202
```azurecli-interactive
203
203
az network vnet subnet create \
@@ -220,7 +220,7 @@ az network vnet subnet create \
220
220
--nat-gateway nat-gateway
221
221
```
222
222
223
-
Use [az network public-ip create](/cli/azure/network/public-ip?view=azure-cli-latest#az_network_public_ip_create) to create a public IP address for the Azure Bastion host.
223
+
Use [az network public-ip create](/cli/azure/network/public-ip#az_network_public_ip_create) to create a public IP address for the Azure Bastion host.
224
224
225
225
```azurecli-interactive
226
226
# Create public IP for Bastion
@@ -231,7 +231,7 @@ az network public-ip create \
231
231
--allocation-method Static
232
232
```
233
233
234
-
Use [az network bastion create](/cli/azure/network/bastion?view=azure-cli-latest#az_network_bastion_create) to create the Azure Bastion host.
234
+
Use [az network bastion create](/cli/azure/network/bastion#az_network_bastion_create) to create the Azure Bastion host.
235
235
236
236
```azurecli-interactive
237
237
az network bastion create \
@@ -298,7 +298,7 @@ The simulated NVA acts as a virtual appliance to route all traffic between the s
298
298
299
299
# [**CLI**](#tab/cli)
300
300
301
-
Use [az network nsg create](/cli/azure/network/nsg?view=azure-cli-latest#az_network_nsg_create) to create the network security group.
301
+
Use [az network nsg create](/cli/azure/network/nsg#az_network_nsg_create) to create the network security group.
302
302
303
303
```azurecli-interactive
304
304
az network nsg create \
@@ -307,7 +307,7 @@ az network nsg create \
307
307
--location eastus2
308
308
```
309
309
310
-
Use [az network nic create](/cli/azure/network/nic?view=azure-cli-latest#az_network_nic_create) to create the network interface.
310
+
Use [az network nic create](/cli/azure/network/nic#az_network_nic_create) to create the network interface.
311
311
312
312
```azurecli-interactive
313
313
az network nic create \
@@ -318,7 +318,7 @@ az network nic create \
318
318
--network-security-group nsg-nva
319
319
```
320
320
321
-
Use [az vm create](/cli/azure/vm?view=azure-cli-latest#az_vm_create) to create the virtual machine.
321
+
Use [az vm create](/cli/azure/vm#az_vm_create) to create the virtual machine.
322
322
323
323
```azurecli-interactive
324
324
az vm create \
@@ -389,7 +389,7 @@ The IP configuration of the primary network interface of the virtual machine is
389
389
390
390
# [**CLI**](#tab/cli)
391
391
392
-
Use [az network nic update](/cli/azure/network/nic?view=azure-cli-latest#az_network_nic_update) to enable IP forwarding on the primary network interface.
392
+
Use [az network nic update](/cli/azure/network/nic#az_network_nic_update) to enable IP forwarding on the primary network interface.
393
393
394
394
```azurecli-interactive
395
395
az network nic update \
@@ -398,7 +398,7 @@ az network nic update \
398
398
--ip-forwarding true
399
399
```
400
400
401
-
Use [az network nic ip-config update](/cli/azure/network/nic/ip-config?view=azure-cli-latest#az_network_nic_ip_config_update) to statically set the private IP address of the virtual machine.
401
+
Use [az network nic ip-config update](/cli/azure/network/nic/ip-config#az_network_nic_ip_config_update) to statically set the private IP address of the virtual machine.
402
402
403
403
```azurecli-interactive
404
404
az network nic ip-config update \
@@ -409,7 +409,7 @@ az network nic ip-config update \
409
409
--private-ip-address-version IPv4
410
410
```
411
411
412
-
Use [az network nic create](/cli/azure/network/nic?view=azure-cli-latest#az_network_nic_create) to create the secondary network interface.
412
+
Use [az network nic create](/cli/azure/network/nic#az_network_nic_create) to create the secondary network interface.
413
413
414
414
```azurecli-interactive
415
415
az network nic create \
@@ -420,7 +420,7 @@ az network nic create \
420
420
--private-ip-address 10.0.0.10
421
421
```
422
422
423
-
Use [az vm nic add](/cli/azure/vm/nic?view=azure-cli-latest#az_vm_nic_add) to attach the secondary network interface to the virtual machine. The command will generate SSH keys for the virtual machine for login. Make note of the location of the private key. The private key is needed in later steps for connecting to the virtual machine with Azure Bastion.
423
+
Use [az vm nic add](/cli/azure/vm/nic#az_vm_nic_add) to attach the secondary network interface to the virtual machine. The command will generate SSH keys for the virtual machine for login. Make note of the location of the private key. The private key is needed in later steps for connecting to the virtual machine with Azure Bastion.
424
424
425
425
```azurecli-interactive
426
426
az vm nic add \
@@ -571,7 +571,7 @@ Route tables are used to overwrite Azure's default routing. Create a route table
571
571
572
572
# [**CLI**](#tab/cli)
573
573
574
-
Use [az network route-table create](/cli/azure/network/route-table?view=azure-cli-latest#az_network_route_table_create) to create the route table.
574
+
Use [az network route-table create](/cli/azure/network/route-table#az_network_route_table_create) to create the route table.
575
575
576
576
```azurecli-interactive
577
577
az network route-table create \
@@ -580,7 +580,7 @@ az network route-table create \
580
580
--location eastus2
581
581
```
582
582
583
-
Use [az network route-table route create](/cli/azure/network/route-table/route?view=azure-cli-latest#az_network_route_table_route_create) to create the route in the route table.
583
+
Use [az network route-table route create](/cli/azure/network/route-table/route#az_network_route_table_route_create) to create the route in the route table.
584
584
585
585
```azurecli-interactive
586
586
az network route-table route create \
@@ -592,7 +592,7 @@ az network route-table route create \
592
592
--next-hop-ip-address 10.0.0.10
593
593
```
594
594
595
-
Use [az network vnet subnet update](/cli/azure/network/vnet/subnet?view=azure-cli-latest#az_network_vnet_subnet_update) to associate the route table with the subnet.
595
+
Use [az network vnet subnet update](/cli/azure/network/vnet/subnet#az_network_vnet_subnet_update) to associate the route table with the subnet.
596
596
597
597
```azurecli-interactive
598
598
az network vnet subnet update \
@@ -658,7 +658,7 @@ Create another virtual network in a different region for the first spoke of the
658
658
659
659
# [**CLI**](#tab/cli)
660
660
661
-
Use [az network vnet create](/cli/azure/network/vnet?view=azure-cli-latest#az_network_vnet_create) to create the virtual network.
661
+
Use [az network vnet create](/cli/azure/network/vnet#az_network_vnet_create) to create the virtual network.
662
662
663
663
```azurecli-interactive
664
664
az network vnet create \
@@ -668,7 +668,7 @@ az network vnet create \
668
668
--location southcentralus
669
669
```
670
670
671
-
Use [az network vnet subnet create](/cli/azure/network/vnet/subnet?view=azure-cli-latest#az_network_vnet_subnet_create) to create the subnet.
671
+
Use [az network vnet subnet create](/cli/azure/network/vnet/subnet#az_network_vnet_subnet_create) to create the subnet.
672
672
673
673
```azurecli-interactive
674
674
az network vnet subnet create \
@@ -724,7 +724,7 @@ A virtual network peering is used to connect the hub to spoke one and spoke one
724
724
725
725
# [**CLI**](#tab/cli)
726
726
727
-
Use [az network vnet peering create](/cli/azure/network/vnet/peering?view=azure-cli-latest#az_network_vnet_peering_create) to create the peering from the hub to spoke one.
727
+
Use [az network vnet peering create](/cli/azure/network/vnet/peering#az_network_vnet_peering_create) to create the peering from the hub to spoke one.
728
728
729
729
```azurecli-interactive
730
730
# Create peering from hub to spoke one
@@ -811,7 +811,7 @@ Create a route table to force all inter-spoke and internet egress traffic throug
811
811
812
812
# [**CLI**](#tab/cli)
813
813
814
-
Use [az network route-table create](/cli/azure/network/route-table?view=azure-cli-latest#az_network_route_table_create) to create the route table.
814
+
Use [az network route-table create](/cli/azure/network/route-table#az_network_route_table_create) to create the route table.
815
815
816
816
```azurecli-interactive
817
817
az network route-table create \
@@ -820,7 +820,7 @@ az network route-table create \
820
820
--location southcentralus
821
821
```
822
822
823
-
Use [az network route-table route create](/cli/azure/network/route-table/route?view=azure-cli-latest#az_network_route_table_route_create) to create the route in the route table.
823
+
Use [az network route-table route create](/cli/azure/network/route-table/route#az_network_route_table_route_create) to create the route in the route table.
824
824
825
825
```azurecli-interactive
826
826
az network route-table route create \
@@ -832,7 +832,7 @@ az network route-table route create \
832
832
--next-hop-ip-address 10.0.0.10
833
833
```
834
834
835
-
Use [az network vnet subnet update](/cli/azure/network/vnet/subnet?view=azure-cli-latest#az_network_vnet_subnet_update) to associate the route table with the subnet.
835
+
Use [az network vnet subnet update](/cli/azure/network/vnet/subnet#az_network_vnet_subnet_update) to associate the route table with the subnet.
836
836
837
837
```azurecli-interactive
838
838
az network vnet subnet update \
@@ -901,7 +901,7 @@ A Windows Server 2022 virtual machine is used to test the outbound internet traf
901
901
902
902
# [**CLI**](#tab/cli)
903
903
904
-
Use [az network nsg create](/cli/azure/network/nsg?view=azure-cli-latest#az_network_nsg_create) to create the network security group.
904
+
Use [az network nsg create](/cli/azure/network/nsg#az_network_nsg_create) to create the network security group.
905
905
906
906
```azurecli-interactive
907
907
az network nsg create \
@@ -910,7 +910,7 @@ az network nsg create \
910
910
--location eastus2
911
911
```
912
912
913
-
Use [az network nsg rule create](/cli/azure/network/nsg/rule?view=azure-cli-latest#az_network_nsg_rule_create) to create an inbound NSG rule for HTTP.
913
+
Use [az network nsg rule create](/cli/azure/network/nsg/rule#az_network_nsg_rule_create) to create an inbound NSG rule for HTTP.
914
914
915
915
```azurecli-interactive
916
916
az network nsg rule create \
@@ -924,7 +924,7 @@ az network nsg rule create \
924
924
--destination-port-ranges 80
925
925
```
926
926
927
-
Use [az network nic create](/cli/azure/network/nic?view=azure-cli-latest#az_network_nic_create) to create the network interface.
927
+
Use [az network nic create](/cli/azure/network/nic#az_network_nic_create) to create the network interface.
928
928
929
929
```azurecli-interactive
930
930
az network nic create \
@@ -935,7 +935,7 @@ az network nic create \
935
935
--network-security-group nsg-spoke-1
936
936
```
937
937
938
-
Use [az vm create](/cli/azure/vm?view=azure-cli-latest#az_vm_create) to create the Windows Server 2022 virtual machine.
938
+
Use [az vm create](/cli/azure/vm#az_vm_create) to create the Windows Server 2022 virtual machine.
939
939
940
940
```azurecli-interactive
941
941
az vm create \
@@ -994,7 +994,7 @@ IIS is installed on the Windows Server 2022 virtual machine to test outbound int
994
994
995
995
# [**CLI**](#tab/cli)
996
996
997
-
Use [az vm extension set](/cli/azure/vm/extension?view=azure-cli-latest#az_vm_extension_set) to install IIS on the virtual machine.
997
+
Use [az vm extension set](/cli/azure/vm/extension#az_vm_extension_set) to install IIS on the virtual machine.
998
998
999
999
```azurecli-interactive
1000
1000
az vm extension set \
@@ -1062,7 +1062,7 @@ Create the second virtual network for the second spoke of the hub and spoke netw
1062
1062
1063
1063
# [**CLI**](#tab/cli)
1064
1064
1065
-
Use [az network vnet create](/cli/azure/network/vnet?view=azure-cli-latest#az_network_vnet_create) to create the virtual network.
1065
+
Use [az network vnet create](/cli/azure/network/vnet#az_network_vnet_create) to create the virtual network.
1066
1066
1067
1067
```azurecli-interactive
1068
1068
az network vnet create \
@@ -1072,7 +1072,7 @@ az network vnet create \
1072
1072
--location westus2
1073
1073
```
1074
1074
1075
-
Use [az network vnet subnet create](/cli/azure/network/vnet/subnet?view=azure-cli-latest#az_network_vnet_subnet_create) to create the subnet.
1075
+
Use [az network vnet subnet create](/cli/azure/network/vnet/subnet#az_network_vnet_subnet_create) to create the subnet.
1076
1076
1077
1077
```azurecli-interactive
1078
1078
az network vnet subnet create \
@@ -1136,7 +1136,7 @@ Create a two-way virtual network peer between the hub and spoke two.
1136
1136
1137
1137
# [**CLI**](#tab/cli)
1138
1138
1139
-
Use [az network vnet peering create](/cli/azure/network/vnet/peering?view=azure-cli-latest#az_network_vnet_peering_create) to create the peering from the hub to spoke two.
1139
+
Use [az network vnet peering create](/cli/azure/network/vnet/peering#az_network_vnet_peering_create) to create the peering from the hub to spoke two.
1140
1140
1141
1141
```azurecli-interactive
1142
1142
# Create peering from hub to spoke two
@@ -1223,7 +1223,7 @@ Create a route table to force all outbound internet and inter-spoke traffic thro
1223
1223
1224
1224
# [**CLI**](#tab/cli)
1225
1225
1226
-
Use [az network route-table create](/cli/azure/network/route-table?view=azure-cli-latest#az_network_route_table_create) to create the route table.
1226
+
Use [az network route-table create](/cli/azure/network/route-table#az_network_route_table_create) to create the route table.
1227
1227
1228
1228
```azurecli-interactive
1229
1229
az network route-table create \
@@ -1232,7 +1232,7 @@ az network route-table create \
1232
1232
--location westus2
1233
1233
```
1234
1234
1235
-
Use [az network route-table route create](/cli/azure/network/route-table/route?view=azure-cli-latest#az_network_route_table_route_create) to create the route in the route table.
1235
+
Use [az network route-table route create](/cli/azure/network/route-table/route#az_network_route_table_route_create) to create the route in the route table.
1236
1236
1237
1237
```azurecli-interactive
1238
1238
az network route-table route create \
@@ -1244,7 +1244,7 @@ az network route-table route create \
1244
1244
--next-hop-ip-address 10.0.0.10
1245
1245
```
1246
1246
1247
-
Use [az network vnet subnet update](/cli/azure/network/vnet/subnet?view=azure-cli-latest#az_network_vnet_subnet_update) to associate the route table with the subnet.
1247
+
Use [az network vnet subnet update](/cli/azure/network/vnet/subnet#az_network_vnet_subnet_update) to associate the route table with the subnet.
1248
1248
1249
1249
```azurecli-interactive
1250
1250
az network vnet subnet update \
@@ -1312,7 +1312,7 @@ Create a Windows Server 2022 virtual machine for the test virtual machine in spo
1312
1312
# [**CLI**](#tab/cli)
1313
1313
1314
1314
1315
-
Use [az network nsg create](/cli/azure/network/nsg?view=azure-cli-latest#az_network_nsg_create) to create the network security group.
1315
+
Use [az network nsg create](/cli/azure/network/nsg#az_network_nsg_create) to create the network security group.
1316
1316
1317
1317
```azurecli-interactive
1318
1318
az network nsg create \
@@ -1321,7 +1321,7 @@ az network nsg create \
1321
1321
--location eastus2
1322
1322
```
1323
1323
1324
-
Use [az network nsg rule create](/cli/azure/network/nsg/rule?view=azure-cli-latest#az_network_nsg_rule_create) to create an inbound NSG rule for HTTP.
1324
+
Use [az network nsg rule create](/cli/azure/network/nsg/rule#az_network_nsg_rule_create) to create an inbound NSG rule for HTTP.
1325
1325
1326
1326
```azurecli-interactive
1327
1327
az network nsg rule create \
@@ -1335,7 +1335,7 @@ az network nsg rule create \
1335
1335
--destination-port-ranges 80
1336
1336
```
1337
1337
1338
-
Use [az network nic create](/cli/azure/network/nic?view=azure-cli-latest#az_network_nic_create) to create the network interface.
1338
+
Use [az network nic create](/cli/azure/network/nic#az_network_nic_create) to create the network interface.
1339
1339
1340
1340
```azurecli-interactive
1341
1341
az network nic create \
@@ -1346,7 +1346,7 @@ az network nic create \
1346
1346
--network-security-group nsg-spoke-2
1347
1347
```
1348
1348
1349
-
Use [az vm create](/cli/azure/vm?view=azure-cli-latest#az_vm_create) to create the Windows Server 2022 virtual machine.
1349
+
Use [az vm create](/cli/azure/vm#az_vm_create) to create the Windows Server 2022 virtual machine.
1350
1350
1351
1351
```azurecli-interactive
1352
1352
az vm create \
@@ -1405,7 +1405,7 @@ IIS is installed on the Windows Server 2022 virtual machine to test outbound int
1405
1405
1406
1406
# [**CLI**](#tab/cli)
1407
1407
1408
-
Use [az vm extension set](/cli/azure/vm/extension?view=azure-cli-latest#az_vm_extension_set) to install IIS on the virtual machine.
1408
+
Use [az vm extension set](/cli/azure/vm/extension#az_vm_extension_set) to install IIS on the virtual machine.
1409
1409
1410
1410
```azurecli-interactive
1411
1411
az vm extension set \
@@ -1527,7 +1527,7 @@ Use Microsoft Edge to connect to the web server on **vm-spoke-1** you installed
1527
1527
1528
1528
# [**CLI**](#tab/cli)
1529
1529
1530
-
Use [az group delete](/cli/azure/group?view=azure-cli-latest#az_group_delete) to delete the resource group.
1530
+
Use [az group delete](/cli/azure/group#az_group_delete) to delete the resource group.
0 commit comments