Skip to content

Commit 35cdc4a

Browse files
committed
added direct links to commands
1 parent 503e37e commit 35cdc4a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

articles/virtual-network/tutorial-connect-virtual-networks-cli.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ az group create \
4141
--location eastus
4242
```
4343

44-
Create a virtual network with [az network vnet create](/cli/azure/network/vnet). The following example creates a virtual network named **vnet-1** with the address prefix **10.0.0.0/16**.
44+
Create a virtual network with [az network vnet create](/cli/azure/network/vnet#az-network-vnet-create). The following example creates a virtual network named **vnet-1** with the address prefix **10.0.0.0/16**.
4545

4646
```azurecli-interactive
4747
az network vnet create \
@@ -65,7 +65,7 @@ az network vnet create \
6565

6666
## Peer virtual networks
6767

68-
Peerings are established between virtual network IDs, so you must first get the ID of each virtual network with [az network vnet show](/cli/azure/network/vnet) and store the ID in a variable.
68+
Peerings are established between virtual network IDs, so you must first get the ID of each virtual network with [az network vnet show](/cli/azure/network/vnet#az-network-vnet-show) and store the ID in a variable.
6969

7070
```azurecli-interactive
7171
# Get the id for vnet-1.
@@ -74,15 +74,15 @@ vNet1Id=$(az network vnet show \
7474
--name vnet-1 \
7575
--query id --out tsv)
7676
77-
# Get the id for myVirtualNetwork2.
77+
# Get the id for vnet-2.
7878
vNet2Id=$(az network vnet show \
7979
--resource-group test-rg \
8080
--name vnet-2 \
8181
--query id \
8282
--out tsv)
8383
```
8484

85-
Create a peering from **vnet-1** to **vnet-2**with [az network vnet peering create](/cli/azure/network/vnet/peering). If the `--allow-vnet-access` parameter is not specified, a peering is established, but no communication can flow through it.
85+
Create a peering from **vnet-1** to **vnet-2** with [az network vnet peering create](/cli/azure/network/vnet/peering#az-network-vnet-peering-create). If the `--allow-vnet-access` parameter is not specified, a peering is established, but no communication can flow through it.
8686

8787
```azurecli-interactive
8888
az network vnet peering create \
@@ -93,7 +93,7 @@ az network vnet peering create \
9393
--allow-vnet-access
9494
```
9595

96-
In the output returned after the previous command executes, you see that the **peeringState** is **Initiated**. The peering remains in the **Initiated** state until you create the peering from **vnet-2** to **vnet-1**. Create a peering from **vnet-2**to **vnet-1**.
96+
In the output returned after the previous command executes, you see that the **peeringState** is **Initiated**. The peering remains in the **Initiated** state until you create the peering from **vnet-2** to **vnet-1**. Create a peering from **vnet-2** to **vnet-1**.
9797

9898
```azurecli-interactive
9999
az network vnet peering create \
@@ -104,7 +104,7 @@ az network vnet peering create \
104104
--allow-vnet-access
105105
```
106106

107-
In the output returned after the previous command executes, you see that the **peeringState** is **Connected**. Azure also changed the peering state of the **vnet-1-to-vnet-2** peering to **Connected**. Confirm that the peering state for the **vnet-1-to-vnet-2** peering changed to **Connected** with [az network vnet peering show](/cli/azure/network/vnet/peering).
107+
In the output returned after the previous command executes, you see that the **peeringState** is **Connected**. Azure also changed the peering state of the **vnet-1-to-vnet-2** peering to **Connected**. Confirm that the peering state for the **vnet-1-to-vnet-2** peering changed to **Connected** with [az network vnet peering show](/cli/azure/network/vnet/peering#az-network-vnet-show).
108108

109109
```azurecli-interactive
110110
az network vnet peering show \
@@ -122,7 +122,7 @@ Create a VM in each virtual network so that you can communicate between them in
122122

123123
### Create the first VM
124124

125-
Create a VM with [az vm create](/cli/azure/vm). The following example creates a VM named **vm-1** in the **vnet-1** virtual network. If SSH keys do not already exist in a default key location, the command creates them. To use a specific set of keys, use the `--ssh-key-value` option. The `--no-wait` option creates the VM in the background, so you can continue to the next step.
125+
Create a VM with [az vm create](/cli/azure/vm#az-vm-create). The following example creates a VM named **vm-1** in the **vnet-1** virtual network. If SSH keys do not already exist in a default key location, the command creates them. To use a specific set of keys, use the `--ssh-key-value` option. The `--no-wait` option creates the VM in the background, so you can continue to the next step.
126126

127127
```azurecli-interactive
128128
az vm create \
@@ -188,7 +188,7 @@ Close the SSH session to the **vm-2** VM.
188188

189189
## Clean up resources
190190

191-
When no longer needed, use [az group delete](/cli/azure/group) to remove the resource group and all of the resources it contains.
191+
When no longer needed, use [az group delete](/cli/azure/group#az-group-delete) to remove the resource group and all of the resources it contains.
192192

193193
```azurecli-interactive
194194
az group delete \

includes/ephemeral-ip-note.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: asudbring
33
ms.service: virtual-network
44
ms.topic: include
5-
ms.date: 10/26/2022
5+
ms.date: 04/15/2024
66
ms.author: allensu
77
---
88
> [!NOTE]
@@ -11,7 +11,7 @@ ms.author: allensu
1111
> The default outbound access IP is disabled when one of the following events happens:
1212
> - A public IP address is assigned to the VM.
1313
> - The VM is placed in the backend pool of a standard load balancer, with or without outbound rules.
14-
> - An [Azure Virtual Network NAT gateway](../articles/virtual-network/nat-gateway/nat-overview.md) resource is assigned to the subnet of the VM.
14+
> - An [Azure NAT Gateway](../articles/virtual-network/nat-gateway/nat-overview.md) resource is assigned to the subnet of the VM.
1515
>
1616
> VMs that you create by using virtual machine scale sets in flexible orchestration mode don't have default outbound access.
1717
>

0 commit comments

Comments
 (0)