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/dns/tutorial-alias-tm.md
+58-58Lines changed: 58 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ services: dns
6
6
author: greg-lindsay
7
7
ms.service: azure-dns
8
8
ms.topic: tutorial
9
-
ms.date: 03/08/2024
9
+
ms.date: 09/19/2024
10
10
ms.author: greglin
11
11
ms.custom: template-tutorial #Required; leave this attribute/value as-is.
12
12
#Customer intent: As an experienced network administrator, I want to configure Azure DNS alias records to use my apex domain name with Traffic Manager.
@@ -55,8 +55,8 @@ For more information, see [Resolve errors for resource provider registration](/a
55
55
Create a virtual network and a subnet to place your web servers in.
56
56
57
57
1. In the Azure portal, enter *virtual network* in the search box at the top of the portal, and then select **Virtual networks** from the search results.
58
-
1. In **Virtual networks**, select **+ Create**.
59
-
1. In **Create virtual network**, enter or select the following information in the **Basics** tab:
58
+
2. In **Virtual networks**, select **+ Create**.
59
+
3. In **Create virtual network**, enter or select the following information in the **Basics** tab:
60
60
61
61
| Setting | Value |
62
62
|---------|-------|
@@ -67,23 +67,23 @@ Create a virtual network and a subnet to place your web servers in.
67
67
| Name | Enter *myTMVNet*. |
68
68
| Region | Select your region. |
69
69
70
-
1. Select the **IP Addresses** tab or select the **Next: IP Addresses** button at the bottom of the page.
71
-
1. In the **IP Addresses** tab, enter the following information:
70
+
4. Select the **IP Addresses** tab or select the **Next: IP Addresses** button at the bottom of the page.
71
+
5. In the **IP Addresses** tab, enter the following information:
72
72
73
73
| Setting | Value |
74
74
|---------|-------|
75
75
| IPv4 address space | Enter *10.10.0.0/16*. |
76
76
77
-
1. Select **+ Add subnet**, and enter this information in the **Add subnet**:
77
+
6. Select **+ Add subnet**, and enter this information in the **Add subnet**:
78
78
79
79
| Setting | Value |
80
80
|---------|-------|
81
81
| Subnet name | Enter *WebSubnet*. |
82
82
| Subnet address range | Enter *10.10.0.0/24*. |
83
83
84
-
1. Select **Add**.
85
-
1. Select the **Review + create** tab or select the **Review + create** button.
86
-
1. Select **Create**.
84
+
7. Select **Add**.
85
+
8. Select the **Review + create** tab or select the **Review + create** button.
86
+
9. Select **Create**.
87
87
88
88
## Create web server virtual machines
89
89
@@ -94,8 +94,8 @@ Create two Windows Server virtual machines, and install IIS web server on them,
94
94
Create two Windows Server 2019 virtual machines.
95
95
96
96
1. In the Azure portal, enter *virtual machine* in the search box at the top of the portal, and then select **Virtual machines** from the search results.
97
-
1. In **Virtual machines**, select **+ Create** and then select **Azure virtual machine**.
98
-
1. In **Create a virtual machine**, enter or select the following information in the **Basics** tab:
97
+
2. In **Virtual machines**, select **+ Create** and then select **Azure virtual machine**.
98
+
3. In **Create a virtual machine**, enter or select the following information in the **Basics** tab:
99
99
100
100
| Setting | Value |
101
101
|---------|-------|
@@ -117,9 +117,8 @@ Create two Windows Server 2019 virtual machines.
117
117
| Public inbound ports | Select **None**. |
118
118
119
119
120
-
1. Select the **Networking** tab, or select **Next: Disks**, then **Next: Networking**.
121
-
122
-
1. In the **Networking** tab, enter or select the following information:
120
+
4. Select the **Networking** tab, or select **Next: Disks**, then **Next: Networking**.
121
+
5. In the **Networking** tab, enter or select the following information:
123
122
124
123
| Setting | Value |
125
124
|---------|-------|
@@ -131,9 +130,9 @@ Create two Windows Server 2019 virtual machines.
131
130
| Public inbound ports | Select **Allow selected ports**. |
1. Review the settings, and then select **Create**.
136
-
1. Repeat previous steps to create the second virtual machine. Enter *Web-02* in the **Virtual machine name** and *Web-02-ip* in the **Name** of **Public IP**. For the other settings, use the same information from the previous steps used with first virtual machine.
133
+
6. Select **Review + create**.
134
+
7. Review the settings, and then select **Create**.
135
+
8. Repeat previous steps to create the second virtual machine. Enter *Web-02* in the **Virtual machine name** and *Web-02-ip* in the **Name** of **Public IP**. For the other settings, use the same information from the previous steps used with first virtual machine.
137
136
138
137
Each virtual machine deployment may take a few minutes to complete.
139
138
@@ -142,44 +141,44 @@ Each virtual machine deployment may take a few minutes to complete.
142
141
Install IIS on both **Web-01** and **Web-02** virtual machines.
143
142
144
143
1. In the **Connect** page of **Web-01** virtual machine, select **RDP** and then **Download RDP File**.
145
-
1. Open *Web-01.rdp* file, and select **Connect**.
146
-
1. Enter the username and password entered during virtual machine creation.
147
-
1. On the **Server Manager** dashboard, select **Manage** then **Add Roles and Features**.
148
-
1. Select **Server Roles** or select **Next** three times. On the **Server Roles** screen, select **Web Server (IIS)**.
149
-
1. Select **Add Features**, and then select **Next**.
144
+
2. Open *Web-01.rdp* file, and select **Connect**.
145
+
3. Enter the username and password entered during virtual machine creation.
146
+
4. On the **Server Manager** dashboard, select **Manage** then **Add Roles and Features**.
147
+
5. Select **Server Roles** or select **Next** three times. On the **Server Roles** screen, select **Web Server (IIS)**.
148
+
6. Select **Add Features**, and then select **Next**.
150
149
151
150
:::image type="content" source="./media/tutorial-alias-tm/iis-web-server-installation.png" alt-text="Screenshot of Add Roles and Features Wizard in Windows Server 2019 showing how to install the I I S Web Server by adding the Web Server role.":::
152
151
153
-
1. Select **Confirmation** or select **Next** three times, and then select **Install**. The installation process takes a few minutes to finish.
154
-
1. After the installation finishes, select **Close**.
155
-
1. Go to *C:\inetpub\wwwroot* and open *iisstart.htm* with Notepad or any editor of your choice to edit the default IIS web page.
156
-
1. Replace all the text in the file with `Hello World from Web-01` and save the changes to *iisstart.htm*.
157
-
1. Open a web browser. Browse to **localhost** to verify that the default IIS web page appears.
152
+
7. Select **Confirmation** or select **Next** three times, and then select **Install**. The installation process takes a few minutes to finish.
153
+
8. After the installation finishes, select **Close**.
154
+
9. Go to *C:\inetpub\wwwroot* and open *iisstart.htm* with Notepad or any editor of your choice to edit the default IIS web page.
155
+
10. Replace all the text in the file with `Hello World from Web-01` and save the changes to *iisstart.htm*.
156
+
11. Open a web browser. Browse to **localhost** to verify that the default IIS web page appears.
158
157
159
158
:::image type="content" source="./media/tutorial-alias-tm/iis-on-web-01-vm-in-web-browser.png" alt-text="Screenshot of Internet Explorer showing the I I S Web Server default page of first virtual machine.":::
160
159
161
-
1. Repeat previous steps to install IIS web server on **Web-02** virtual machine. Use `Hello World from Web-02` to replace all the text in *iisstart.htm*.
160
+
12. Repeat previous steps to install IIS web server on **Web-02** virtual machine. Use `Hello World from Web-02` to replace all the text in *iisstart.htm*.
162
161
163
162
### Add a DNS label
164
163
165
164
Public IP addresses need DNS labels to work with Traffic Manager.
166
165
167
166
1. In the Azure portal, enter *TMResourceGroup* in the search box at the top of the portal, and then select **TMResourceGroup** from the search results.
168
-
1. In the **TMResourceGroup** resource group, select the **Web-01-ip** public IP address.
169
-
1. Under **Settings**, select **Configuration**.
170
-
1. Enter *web01pip* in the **DNS name label**.
171
-
1. Select **Save**.
167
+
2. In the **TMResourceGroup** resource group, select the **Web-01-ip** public IP address.
168
+
3. Under **Settings**, select **Configuration**.
169
+
4. Enter *web01pip* in the **DNS name label**.
170
+
5. Select **Save**.
172
171
173
172
:::image type="content" source="./media/tutorial-alias-tm/ip-dns-name-label-inline.png" alt-text="Screenshot of the Configuration page of Azure Public IP Address showing D N S name label." lightbox="./media/tutorial-alias-tm/ip-dns-name-label-expanded.png":::
174
173
175
-
1. Repeat the previous steps for the **Web-02-ip** public IP address and enter *web02pip* in the **DNS name label**.
174
+
6. Repeat the previous steps for the **Web-02-ip** public IP address and enter *web02pip* in the **DNS name label**.
176
175
177
176
## Create a Traffic Manager profile
178
177
179
178
1. In the **Overview** page of **Web-01-ip** public IP address, note the IP address for later use. Repeat this step for the **Web-02-ip** public IP address.
180
-
1. In the Azure portal, enter *Traffic Manager profile* in the search box at the top of the portal, and then select **Traffic Manager profiles**.
181
-
1. Select **+ Create**.
182
-
1. In the **Create Traffic Manager profile** page, enter or select the following information:
179
+
2. In the Azure portal, enter *Traffic Manager profile* in the search box at the top of the portal, and then select **Traffic Manager profiles**.
180
+
3. Select **+ Create**.
181
+
4. In the **Create Traffic Manager profile** page, enter or select the following information:
183
182
184
183
| Setting | Value |
185
184
|---------|-------|
@@ -190,10 +189,9 @@ Public IP addresses need DNS labels to work with Traffic Manager.
190
189
191
190
:::image type="content" source="./media/tutorial-alias-tm/create-traffic-manager-profile.png" alt-text="Screenshot of the Create Traffic Manager profile page showing the selected settings.":::
192
191
193
-
1. Select **Create**.
194
-
195
-
1. After **TM-alias-test** deployment finishes, select **Go to resource**.
196
-
1. In the **Endpoints** page of **TM-alias-test** Traffic Manager profile, select **+ Add** and enter or select the following information:
192
+
5. Select **Create**.
193
+
6. After **TM-alias-test** deployment finishes, select **Go to resource**.
194
+
7. In the **Endpoints** page of **TM-alias-test** Traffic Manager profile, select **+ Add** and enter or select the following information:
197
195
198
196
| Setting | Value |
199
197
|---------|-------|
@@ -204,9 +202,8 @@ Public IP addresses need DNS labels to work with Traffic Manager.
204
202
205
203
:::image type="content" source="./media/tutorial-alias-tm/add-endpoint-tm-inline.png" alt-text="Screenshot of the Endpoints page in Traffic Manager profile showing selected settings for adding an endpoint." lightbox="./media/tutorial-alias-tm/add-endpoint-tm-expanded.png":::
206
204
207
-
1. Select **Add**.
208
-
209
-
1. Repeat the last two steps to create the second endpoint. Enter or select the following information:
205
+
8. Select **Add**.
206
+
9. Repeat the last two steps to create the second endpoint. Enter or select the following information:
210
207
211
208
| Setting | Value |
212
209
|---------|-------|
@@ -220,33 +217,36 @@ Public IP addresses need DNS labels to work with Traffic Manager.
220
217
Create an alias record that points to the Traffic Manager profile.
221
218
222
219
1. In the Azure portal, enter *contoso.com* in the search box at the top of the portal, and then select **contoso.com** DNS zone from the search results.
223
-
1. In the **Overview** page of **contoso.com** DNS zone, select the **+ Record set** button.
224
-
1. In the**Add record set**, leave the **Name** box empty to represent the apex domain name. An example is `contoso.com`.
225
-
1. Select **A** for the **Type**.
226
-
1. Select **Yes** for the **Alias record set**, and then select the **Azure Resource** for the **Alias type**.
227
-
1. Select the **TM-alias-test** Traffic Manager profile for the **Azure resource**.
228
-
1. Select **OK**.
220
+
2. On the **Overview** page of **contoso.com** DNS zone, select the **+ Record set** button.
221
+
3. In **Add record set**, leave the **Name** box empty to represent the apex domain name. An example is `contoso.com`.
222
+
4. Select **A** for the **Type**.
223
+
5. Select **Yes** for the **Alias record set**, and then select the **Azure Resource** for the **Alias type**.
224
+
6. Select the **TM-alias-test** Traffic Manager profile for the **Azure resource**.
225
+
7. Select **OK**.
229
226
230
227
:::image type="content" source="./media/tutorial-alias-tm/add-record-set-tm-inline.png" alt-text="Screenshot of adding an alias record to refer to the Traffic Manager profile." lightbox="./media/tutorial-alias-tm/add-record-set-tm-expanded.png":::
231
228
229
+
> [!NOTE]
230
+
> DNS Queries to your newly aliased Traffic Manager recordset are displayed in your Traffic Manager profile billing. For more information on Traffic Manager billing, see [Traffic Manager pricing](https://azure.microsoft.com/pricing/details/traffic-manager).
231
+
232
232
## Test the alias record
233
233
234
234
1. From a web browser, browse to `contoso.com` or your apex domain name. You see the IIS default page with `Hello World from Web-01`. The Traffic Manager directed traffic to **Web-01** IIS web server because it has the highest priority. Close the web browser and shut down **Web-01** virtual machine. Wait a few minutes for the virtual machine to completely shut down.
235
-
1. Open a new web browser, and browse again to `contoso.com` or your apex domain name.
236
-
1. You should see the IIS default page with `Hello World from Web-02`. The Traffic Manager handled the situation and directed traffic to the second IIS server after shutting down the first server that has the highest priority.
235
+
2. Open a new web browser, and browse again to `contoso.com` or your apex domain name.
236
+
3. You should see the IIS default page with `Hello World from Web-02`. The Traffic Manager handled the situation and directed traffic to the second IIS server after shutting down the first server that has the highest priority.
237
237
238
238
## Clean up resources
239
239
240
240
When no longer needed, you can delete all resources created in this tutorial by following these steps:
241
241
242
242
1. On the Azure portal menu, select **Resource groups**.
243
-
1. Select the **TMResourceGroup** resource group.
244
-
1. On the **Overview** page, select **Delete resource group**.
245
-
1. Enter *TMResourceGroup* and select **Delete**.
246
-
1. On the Azure portal menu, select **All resources**.
247
-
1. Select **contoso.com** DNS zone.
248
-
1. On the **Overview** page, select the **@** record created in this tutorial.
249
-
1. Select **Delete** and then **Yes**.
243
+
2. Select the **TMResourceGroup** resource group.
244
+
3. On the **Overview** page, select **Delete resource group**.
245
+
4. Enter *TMResourceGroup* and select **Delete**.
246
+
5. On the Azure portal menu, select **All resources**.
247
+
6. Select **contoso.com** DNS zone.
248
+
7. On the **Overview** page, select the **@** record created in this tutorial.
0 commit comments