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/virtual-network-manager/tutorial-create-secured-hub-and-spoke.md
+58-50Lines changed: 58 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
---
2
2
title: 'Tutorial: Create a secured hub and spoke network'
3
-
description: In this tutorial, you learn how to create a hub and spoke network with Azure Virtual Network Manager. Then you secure all your virtual networks with a security policy.
3
+
description: In this tutorial, you learn how to create a hub and spoke network topology for your virtual networks using Azure Virtual Network Manager. Then you secure your network by blocking outbound traffic on ports 80 and 443.
# Tutorial: Create a secured hub and spoke network
@@ -36,7 +36,7 @@ In this tutorial, you learn how to:
36
36
37
37
## Create virtual networks
38
38
39
-
This procedure walks you through creating three virtual networks. One is in the *West US* region and the other two are in the *East US* region.
39
+
This procedure walks you through creating three virtual networks that will be connected using the hub and spoke network topology.
40
40
41
41
1. Sign in to the [Azure portal](https://portal.azure.com/).
42
42
@@ -49,38 +49,34 @@ This procedure walks you through creating three virtual networks. One is in the
49
49
| Setting | Value |
50
50
| ------- | ----- |
51
51
| Subscription | Select the subscription you want to deploy this virtual network into. |
52
-
| Resource group | Select or create a new resource group to store the virtual network. This quickstart uses a resource group named **myAVNMResourceGroup**. |
53
-
| Name | Enter **VNet-A-WestUS** for the virtual network name. |
54
-
| Region | Select the **West US** region. |
52
+
| Resource group | Select or create a new resource group to store the virtual network. This quickstart uses a resource group named **rg-learn-eastus-001**. |
53
+
| Name | Enter **vnet-learn-prod-eastus-001** for the virtual network name. |
54
+
| Region | Select the **East US** region. |
55
55
56
56
1. Select **Next: IP Addresses** and configure the following network address space:
57
57
58
58
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/create-hub-vnet-addresses.png" alt-text="Screenshot of IP addresses tab for hub and spoke virtual network.":::
59
59
60
60
| Setting | Value |
61
61
| -------- | ----- |
62
-
| IPv4 address space | Enter **10.3.0.0/16** as the address space. |
62
+
| IPv4 address space | Enter **10.0.0.0/16** as the address space. |
63
63
| Subnet name | Enter the name **default** for the subnet. |
64
-
| Subnet address space | Enter the subnet address space of **10.3.0.0/24**. |
64
+
| Subnet address space | Enter the subnet address space of **10.0.0.0/24**. |
65
65
66
66
1. Select **Review + create** and then select **Create** to deploy the virtual network.
67
67
68
68
69
69
1. Repeat steps 2-5 to create two more virtual networks into the same resource group with the following information:
70
70
71
-
**Second virtual network**:
72
-
* Name: **VNet-A-EastUS**
73
-
* Region: **East US**
74
-
* IPv4 address space: **10.4.0.0/16**
75
-
* Subnet name: **default**
76
-
* Subnet address space: **10.4.0.0/24**
77
71
78
-
**Third virtual network**:
79
-
* Name: **VNet-B-EastUS**
80
-
* Region: **East US**
81
-
* IPv4 address space: **10.5.0.0/16**
82
-
* Subnet name: **default**
83
-
* Subnet address space: **10.5.0.0/24**
72
+
| Setting | Value |
73
+
| ------- | ----- |
74
+
| Subscription | Select the same subscription you selected in step 3. |
75
+
| Resource group | Select the **rg-learn-eastus-001**. |
76
+
| Name | Enter **vnet-learn-prod-eastus-002** and **vnet-learn-hub-eastus-001** for each extra virtual network. |
@@ -96,14 +92,14 @@ Deploy a virtual network gateway into the hub virtual network. This virtual netw
96
92
| Setting | Value |
97
93
| -------- | ----- |
98
94
| Subscription | Select the subscription you want to deploy this virtual network into. |
99
-
| Name | Enter **VNet-A-WestUS-GW** for the virtual network gateway name. |
95
+
| Name | Enter **gw-learn-hub-eastus-001** for the virtual network gateway name. |
100
96
| SKU | Select **VpnGW1** for the SKU. |
101
97
| Generation | Select **Generation1** for the generation. |
102
-
| Virtual network | Select the **VNet-A-WestUS** for the VNet. |
103
-
| Public IP address name | Enter the name **VNet-A-WestUS-GW-IP** for the public IP. |
98
+
| Virtual network | Select the **vnet-learn-hub-eastus-001** for the VNet. |
99
+
| Public IP address name | Enter the name **gwpip-learn-hub-eastus-001** for the public IP. |
104
100
105
101
106
-
1. Select **Review + create** and then select **Create** after validation has passed. The deployment of a virtual network gateway can take about 30 minutes. You can move on to the next section while waiting for this deployment to complete. However, you may find **VNet-A-WestUS-GW** doesn't display that it has a gateway due to timing and sync across the Azure portal.
102
+
1. Select **Review + create** and then select **Create** after validation has passed. The deployment of a virtual network gateway can take about 30 minutes. You can move on to the next section while waiting for this deployment to complete. However, you may find **gw-learn-hub-eastus-001** doesn't display that it has a gateway due to timing and sync across the Azure portal.
107
103
108
104
## Create a dynamic network group
109
105
@@ -119,7 +115,7 @@ Deploy a virtual network gateway into the hub virtual network. This virtual netw
119
115
120
116
| Setting | Value |
121
117
| ------- | ----- |
122
-
| Name | Enter **myNetworkGroupB** for the network group name. |
118
+
| Name | Enter **ng-learn-prod-eastus-001** for the network group name. |
123
119
| Description | Provide a description about this network group. |
124
120
125
121
1. Select **Create** to create the virtual network group.
@@ -138,44 +134,46 @@ Deploy a virtual network gateway into the hub virtual network. This virtual netw
138
134
139
135
| Setting | Value |
140
136
| ------- | ----- |
141
-
| Policy name | Enter **VNetAZPolicy** in the text box. |
137
+
| Policy name | Enter **azpol-learn-prod-eastus-001** in the text box. |
142
138
| Scope | Select **Select Scopes** and choose your current subscription. |
143
139
| Criteria ||
144
140
| Parameter | Select **Name** from the drop-down.|
145
141
| Operator | Select **Contains** from the drop-down.|
146
-
| Condition | Enter **-EastUS**to dynamically add the two East US virtual networks into this network group. |
142
+
| Condition | Enter **-prod**for the condition in the text box. |
147
143
148
-
1. Select **Save** to deploy the group membership.
149
-
1. Under **Settings**, select **Group Members** to view the membership of the group based on the conditions defined in Azure Policy.
144
+
1. Select **Preview resources** to view the **Effective virtual networks** page and select **Close**. This page shows the virtual networks that will be added to the network group based on the conditions defined in Azure Policy.
145
+
1. Select **Save** to deploy the group membership. It can take up to one minute for the policy to take effect and be added to your network group.
146
+
1. On the **Network Group** page under **Settings**, select **Group Members** to view the membership of the group based on the conditions defined in Azure Policy. In the example, the **Source** is listed as **azpol-learn-prod-eastus-001 - subscriptions/subscription_id**.
150
147
:::image type="content" source="media/tutorial-create-secured-hub-and-spoke/group-members-dynamic-thumb.png" alt-text="Screenshot of dynamic group membership under Group Membership." lightbox="media/tutorial-create-secured-hub-and-spoke/group-members-dynamic.png":::
148
+
151
149
## Create a hub and spoke connectivity configuration
152
150
153
-
1. Select **Configuration** under *Settings*, then select **+ Add a configuration**. Select **Connectivity** from the drop-down menu.
151
+
1. Select **Configurations** under **Settings**, then select **+ Create**.
154
152
155
-
:::image type="content" source="./media/create-virtual-network-manager-portal/connectivity-configuration-dropdown.png" alt-text="Screenshot of configuration drop-down menu.":::
153
+
1. Select **Connectivity configuration** from the drop-down menu to begin creating a connectivity configuration.
156
154
157
-
1. On the **Basics**tab, enter and select the following information for the connectivity configuration:
155
+
1. On the **Basics**page, enter the following information, and select **Next: Topology >**.
158
156
159
-
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/connectivity-configuration.png" alt-text="Screenshot of add a connectivity configuration page.":::
157
+
:::image type="content" source="./media/create-virtual-network-manager-portal/connectivity-configuration.png" alt-text="Screenshot of add a connectivity configuration page.":::
160
158
161
159
| Setting | Value |
162
160
| ------- | ----- |
163
-
| Name | Enter **HubA** for the name of the configuration|
164
-
| Description | Provide a description about what this connectivity configuration will do. |
161
+
| Name | Enter **cc-learn-prod-eastus-001**.|
162
+
| Description |*(Optional)*Provide a description about this connectivity configuration. |
165
163
166
164
167
-
1.Select **Next: Topology >**. Select **Hub and Spoke** under the **Topology** setting. This will reveal other settings.
165
+
1.On the **Topology** tab, select **Hub and Spoke**. This will reveal other settings.
168
166
169
167
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/hub-configuration.png" alt-text="Screenshot of selecting a hub for the connectivity configuration.":::
170
168
171
-
1. Select **Select a hub** under **Hub** setting. Then, select **VNet-A-WestUS** to serve as your network hub and select **Select**.
169
+
1. Select **Select a hub** under **Hub** setting. Then, select **vnet-learn-hub-eastus-001** to serve as your network hub and select **Select**.
172
170
173
171
:::image type="content" source="media/tutorial-create-secured-hub-and-spoke/select-hub.png" alt-text="Screenshot of Select a hub configuration.":::
174
172
175
173
> [!NOTE]
176
174
> Depending on the timing of deployment, you may not see the target hub virtual networked as have a gateway under **Has gateway**. This is due to the deployment of the virtual network gateway. It can take up to 30 minutes to deploy, and may not display immediately in the various Azure portal views.
177
175
178
-
1. Under **Spoke network groups**, select **+ add**. Then, select **myNetworkGroupB** for the network group and select **Select**.
176
+
1. Under **Spoke network groups**, select **+ add**. Then, select **ng-learn-prod-eastus-001** for the network group and select **Select**.
179
177
180
178
:::image type="content" source="media/tutorial-create-secured-hub-and-spoke/select-network-group.png" alt-text="Screenshot of Add network groups page.":::
181
179
@@ -199,24 +197,34 @@ Make sure the virtual network gateway has been successfully deployed before depl
199
197
200
198
:::image type="content" source="./media/create-virtual-network-manager-portal/deployments.png" alt-text="Screenshot of deployments page in Network Manager.":::
201
199
202
-
1. Select **Include connectivity configurations in your goal state** and **HubA** as the **Connectivity configurations** setting. Then select **West US** and **East US** as the target regions and select **Next**.
200
+
1. Select the following settings:
201
+
202
+
:::image type="content" source="./media/create-virtual-network-manager-portal/deploy-configuration.png" alt-text="Screenshot of deploy a configuration page.":::
203
+
204
+
| Setting | Value |
205
+
| ------- | ----- |
206
+
| Configurations | Select **Include connectivity configurations in your goal state** . |
| Target regions | Select **East US** as the deployment region. |:
209
+
203
210
204
-
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/deploy-configuration.png" alt-text="Screenshot of deploy a configuration page.":::
211
+
1. Select **Next**and then select **Deploy** to complete the deployment.
205
212
213
+
:::image type="content" source="./media/create-virtual-network-manager-portal/deployment-confirmation.png" alt-text="Screenshot of deployment confirmation message.":::
206
214
207
-
1.Select **Deploy**. You should now see the deployment show up in the list for those regions. The deployment of the configuration can take several minutes to complete.
215
+
1.The deployment will display in the list for the selected region. The deployment of the configuration can take a few minutes to complete.
208
216
209
-
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/deployment-in-progress.png" alt-text="Screenshot of deployment in progress in deployment list.":::
217
+
:::image type="content" source="./media/create-virtual-network-manager-portal/deployment-in-progress.png" alt-text="Screenshot of configuration deployment in progress status.":
210
218
211
219
## Create security configuration
212
220
213
221
1. Select **Configuration** under *Settings* again, then select **+ Create**, and select **SecurityAdmin** from the menu to begin creating a SecurityAdmin configuration.
214
222
215
-
1. Enter the name **mySecurityConfig** for the configuration, then select **Next: Rule collections**.
223
+
1. Enter the name **sc-learn-prod-eastus-001** for the configuration, then select **Next: Rule collections**.
216
224
217
225
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/security-admin-configuration.png" alt-text="Screenshot of Security Admin configuration page.":::
218
226
219
-
1. Enter the name **myRuleCollection** for the rule collection and select **myNetworkGroupB** for the target network group. Then select **+ Add**.
227
+
1. Enter the name **rc-learn-prod-eastus-001** for the rule collection and select **ng-learn-prod-eastus-001** for the target network group. Then select **+ Add**.
220
228
221
229
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/add-rule-collection.png" alt-text="Screenshot of add a rule collection page.":::
222
230
@@ -244,7 +252,7 @@ Make sure the virtual network gateway has been successfully deployed before depl
244
252
245
253
1. Select **Deployments** under *Settings*, then select **Deploy configurations**.
246
254
247
-
1. Under *Configurations*, Select **Include security admin in your goal state** and the **mySecurityConfig** configuration you created in the last section. Then select **West US** and **East US** as the target regions and select **Next**.
255
+
1. Under *Configurations*, Select **Include security admin in your goal state** and the **sc-learn-prod-eastus-001** configuration you created in the last section. Then select **East US** and **East US** as the target regions and select **Next**.
248
256
249
257
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/deploy-security.png" alt-text="Screenshot of deploying a security configuration.":::
250
258
@@ -254,11 +262,11 @@ Make sure the virtual network gateway has been successfully deployed before depl
254
262
255
263
### Verify from a virtual network
256
264
257
-
1. Go to **VNet-A-EastUS** virtual network and select **Network Manager** under *Settings*. You'll see the**HubA** connectivity configuration applied.
265
+
1. Go to **VNet-A-EastUS** virtual network and select **Network Manager** under *Settings* to view the connectivity configuration applied.
258
266
259
267
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/vnet-connectivity-configuration.png" alt-text="Screenshot of connectivity configuration applied to the virtual network.":::
260
268
261
-
1. Select **Peerings** under *Settings*. You'll see virtual network peerings created by Virtual Network Manager with *AVNM* in the name.
269
+
1. Select **Peerings** under *Settings* to view the virtual network peerings created by Virtual Network Manager with *AVNM* in the name.
262
270
263
271
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/vnet-peerings.png" alt-text="Screenshot of virtual network peerings created by Virtual Network Manager.":::
264
272
@@ -270,7 +278,7 @@ Make sure the virtual network gateway has been successfully deployed before depl
270
278
271
279
1. Deploy a test Windows VM into **VNet-A-EastUS**.
272
280
273
-
1. Go to the test VM created in *VNet-A-EastUS* and select **Networking** under *Settings*. Select **Outbound port rules**and you'll see the security admin rule applied.
281
+
1. Go to the test VM created in *VNet-A-EastUS* and select **Networking** under *Settings*. Select **Outbound port rules**to view the security admin rule applied.
274
282
275
283
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/vm-security-rules.png" alt-text="Screenshot of test VM's network security rules.":::
276
284
@@ -284,7 +292,7 @@ Make sure the virtual network gateway has been successfully deployed before depl
284
292
285
293
## Clean up resources
286
294
287
-
If you no longer need the Azure Virtual Network Manager, you need to make sure all of following is true before you can delete the resource:
295
+
If you no longer need the Azure Virtual Network Manager instance, you need to make sure all of following is true before you can delete the resource:
288
296
289
297
* There are no deployments of configurations to any region.
0 commit comments