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
docs: Restructure resource group and virtual network into separate tabbed sections
- Create separate '## Create a resource group' section with Portal/PowerShell/CLI tabs
- Create separate '## Create a virtual network' section with Portal/PowerShell/CLI tabs
- Remove duplicate resource group creation from PowerShell and CLI sections
- Improve document organization and clarity
Copy file name to clipboardExpand all lines: articles/virtual-network/tutorial-connect-virtual-networks.md
+28-20Lines changed: 28 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,10 +56,10 @@ If you choose to install and use PowerShell locally, this article requires the A
56
56
57
57
---
58
58
59
-
### [Portal](#tab/portal)
60
-
61
59
## Create a resource group
62
60
61
+
### [Portal](#tab/portal)
62
+
63
63
1. Sign in to the [Azure portal](https://portal.azure.com).
64
64
65
65
1. In the search box at the top of the portal, enter **Resource group**. Select **Resource groups** in the search results.
@@ -78,8 +78,34 @@ If you choose to install and use PowerShell locally, this article requires the A
78
78
79
79
1. Select **Create**.
80
80
81
+
### [PowerShell](#tab/powershell)
82
+
83
+
Create a resource group with [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup). The following example creates a resource group named **test-rg** in the **eastus2** location.
84
+
85
+
```azurepowershell-interactive
86
+
$resourceGroup = @{
87
+
Name = "test-rg"
88
+
Location = "EastUS2"
89
+
}
90
+
New-AzResourceGroup @resourceGroup
91
+
```
92
+
93
+
### [CLI](#tab/cli)
94
+
95
+
Create a resource group with [az group create](/cli/azure/group). The following example creates a resource group named **test-rg** in the **eastus2** location.
96
+
97
+
```azurecli-interactive
98
+
az group create \
99
+
--name test-rg \
100
+
--location eastus2
101
+
```
102
+
103
+
---
104
+
81
105
## Create a virtual network
82
106
107
+
### [Portal](#tab/portal)
108
+
83
109
1. In the search box at the top of the portal, enter **Virtual network**. Select **Virtual networks** in the search results.
84
110
85
111
1. Select **+ Create**.
@@ -162,16 +188,6 @@ Repeat the previous steps to create a second virtual network with the following
162
188
163
189
### [PowerShell](#tab/powershell)
164
190
165
-
Before creating a virtual network, you must create a resource group for the virtual network and all other resources created in this article. Create a resource group with [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup). The following example creates a resource group named **test-rg** in the **eastus** location.
166
-
167
-
```azurepowershell-interactive
168
-
$resourceGroup = @{
169
-
Name = "test-rg"
170
-
Location = "EastUS2"
171
-
}
172
-
New-AzResourceGroup @resourceGroup
173
-
```
174
-
175
191
Create a virtual network with [New-AzVirtualNetwork](/powershell/module/az.network/new-azvirtualnetwork). The following example creates a virtual network named **vnet-1** with the address prefix **10.0.0.0/16**.
Before creating a virtual network, you must create a resource group for the virtual network and all other resources created in this article. Create a resource group with [az group create](/cli/azure/group). The following example creates a resource group named **test-rg** in the **eastus** location.
282
-
283
-
```azurecli-interactive
284
-
az group create \
285
-
--name test-rg \
286
-
--location eastus2
287
-
```
288
-
289
297
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**.
0 commit comments