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
+46-54Lines changed: 46 additions & 54 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 topology for your virtual networks using Azure Virtual Network Manager. Then you secure your network by blocking outbound traffic on ports 80 and 443.
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.
# 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 that will be connected using the hub and spoke network topology.
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.
40
40
41
41
1. Sign in to the [Azure portal](https://portal.azure.com/).
42
42
@@ -49,34 +49,38 @@ This procedure walks you through creating three virtual networks that will be co
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 **rg-learn-eastus-001**. |
53
-
| Name | Enter **vnet-learn-prod-eastus-001** for the virtual network name. |
54
-
| Region | Select the **East US** region. |
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. |
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.0.0.0/16** as the address space. |
62
+
| IPv4 address space | Enter **10.3.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.0.0.0/24**. |
64
+
| Subnet address space | Enter the subnet address space of **10.3.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**
71
77
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 additional virtual network. |
@@ -92,14 +96,14 @@ Deploy a virtual network gateway into the hub virtual network. This virtual netw
92
96
| Setting | Value |
93
97
| -------- | ----- |
94
98
| Subscription | Select the subscription you want to deploy this virtual network into. |
95
-
| Name | Enter **gw-learn-hub-eastus-001** for the virtual network gateway name. |
99
+
| Name | Enter **VNet-A-WestUS-GW** for the virtual network gateway name. |
96
100
| SKU | Select **VpnGW1** for the SKU. |
97
101
| Generation | Select **Generation1** for the generation. |
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. |
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. |
100
104
101
105
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.
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.
103
107
104
108
## Create a dynamic network group
105
109
@@ -115,7 +119,7 @@ Deploy a virtual network gateway into the hub virtual network. This virtual netw
115
119
116
120
| Setting | Value |
117
121
| ------- | ----- |
118
-
| Name | Enter **ng-learn-prod-eastus-001** for the network group name. |
122
+
| Name | Enter **myNetworkGroupB** for the network group name. |
119
123
| Description | Provide a description about this network group. |
120
124
121
125
1. Select **Create** to create the virtual network group.
@@ -134,46 +138,44 @@ Deploy a virtual network gateway into the hub virtual network. This virtual netw
134
138
135
139
| Setting | Value |
136
140
| ------- | ----- |
137
-
| Policy name | Enter **azpol-learn-prod-eastus-001** in the text box. |
141
+
| Policy name | Enter **VNetAZPolicy** in the text box. |
138
142
| Scope | Select **Select Scopes** and choose your current subscription. |
139
143
| Criteria ||
140
144
| Parameter | Select **Name** from the drop-down.|
141
145
| Operator | Select **Contains** from the drop-down.|
142
-
| Condition | Enter **-prod**for the condition in the text box. |
146
+
| Condition | Enter **-EastUS**to dynamically add the two East US virtual networks into this network group. |
143
147
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. You'll note the **Source** is listed as **azpol-learn-prod-eastus-001 - subscriptions/subscription_id**.
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.
147
150
:::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
-
149
151
## Create a hub and spoke connectivity configuration
150
152
151
-
1. Select **Configurations** under **Settings**, then select **+ Create**.
153
+
1. Select **Configuration** under *Settings*, then select **+ Add a configuration**. Select **Connectivity** from the drop-down menu.
152
154
153
-
1. Select **Connectivity configuration** from the drop-down menu to begin creating a connectivity configuration.
155
+
:::image type="content" source="./media/create-virtual-network-manager-portal/connectivity-configuration-dropdown.png" alt-text="Screenshot of configuration drop-down menu.":::
154
156
155
-
1. On the **Basics**page, enter the following information, and select **Next: Topology >**.
157
+
1. On the **Basics**tab, enter and select the following information for the connectivity configuration:
156
158
157
-
:::image type="content" source="./media/create-virtual-network-manager-portal/connectivity-configuration.png" alt-text="Screenshot of add a connectivity configuration page.":::
159
+
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/connectivity-configuration.png" alt-text="Screenshot of add a connectivity configuration page.":::
158
160
159
161
| Setting | Value |
160
162
| ------- | ----- |
161
-
| Name | Enter **cc-learn-prod-eastus-001**.|
162
-
| Description |*(Optional)*Provide a description about this connectivity configuration. |
163
+
| Name | Enter **HubA** for the name of the configuration|
164
+
| Description | Provide a description about what this connectivity configuration will do. |
163
165
164
166
165
-
1.On the **Topology** tab, select **Hub and Spoke**. This will reveal other settings.
167
+
1.Select **Next: Topology >**. Select **Hub and Spoke** under the **Topology** setting. This will reveal other settings.
166
168
167
169
:::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.":::
168
170
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**.
171
+
1. Select **Select a hub** under **Hub** setting. Then, select **VNet-A-WestUS** to serve as your network hub and select **Select**.
170
172
171
173
:::image type="content" source="media/tutorial-create-secured-hub-and-spoke/select-hub.png" alt-text="Screenshot of Select a hub configuration.":::
172
174
173
175
> [!NOTE]
174
176
> 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.
175
177
176
-
1. Under **Spoke network groups**, select **+ add**. Then, select **ng-learn-prod-eastus-001** for the network group and select **Select**.
178
+
1. Under **Spoke network groups**, select **+ add**. Then, select **myNetworkGroupB** for the network group and select **Select**.
177
179
178
180
:::image type="content" source="media/tutorial-create-secured-hub-and-spoke/select-network-group.png" alt-text="Screenshot of Add network groups page.":::
179
181
@@ -197,34 +199,24 @@ Make sure the virtual network gateway has been successfully deployed before depl
197
199
198
200
:::image type="content" source="./media/create-virtual-network-manager-portal/deployments.png" alt-text="Screenshot of deployments page in Network Manager.":::
199
201
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
-
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**.
210
203
211
-
1. Select **Next** and then select **Deploy** to complete the deployment.
204
+
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/deploy-configuration.png" alt-text="Screenshot of deploy a configuration page.":::
212
205
213
-
:::image type="content" source="./media/create-virtual-network-manager-portal/deployment-confirmation.png" alt-text="Screenshot of deployment confirmation message.":::
214
206
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.
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.
216
208
217
-
:::image type="content" source="./media/create-virtual-network-manager-portal/deployment-in-progress.png" alt-text="Screenshot of configuration deployment in progress status.":
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.":::
218
210
219
211
## Create security configuration
220
212
221
213
1. Select **Configuration** under *Settings* again, then select **+ Create**, and select **SecurityAdmin** from the menu to begin creating a SecurityAdmin configuration.
222
214
223
-
1. Enter the name **sc-learn-prod-eastus-001** for the configuration, then select **Next: Rule collections**.
215
+
1. Enter the name **mySecurityConfig** for the configuration, then select **Next: Rule collections**.
224
216
225
217
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/security-admin-configuration.png" alt-text="Screenshot of Security Admin configuration page.":::
226
218
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**.
219
+
1. Enter the name **myRuleCollection** for the rule collection and select **myNetworkGroupB** for the target network group. Then select **+ Add**.
228
220
229
221
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/add-rule-collection.png" alt-text="Screenshot of add a rule collection page.":::
230
222
@@ -252,7 +244,7 @@ Make sure the virtual network gateway has been successfully deployed before depl
252
244
253
245
1. Select **Deployments** under *Settings*, then select **Deploy configurations**.
254
246
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**.
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**.
256
248
257
249
:::image type="content" source="./media/tutorial-create-secured-hub-and-spoke/deploy-security.png" alt-text="Screenshot of deploying a security configuration.":::
0 commit comments