Skip to content

Commit 632abe2

Browse files
authored
Merge pull request #287047 from greg-lindsay/dns-freshness
add note about pricing
2 parents 819419e + 6ff5cf3 commit 632abe2

File tree

6 files changed

+58
-58
lines changed

6 files changed

+58
-58
lines changed
10.4 KB
Loading
11.6 KB
Loading
23.8 KB
Loading
13.2 KB
Loading
7.94 KB
Loading

articles/dns/tutorial-alias-tm.md

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: dns
66
author: greg-lindsay
77
ms.service: azure-dns
88
ms.topic: tutorial
9-
ms.date: 03/08/2024
9+
ms.date: 09/19/2024
1010
ms.author: greglin
1111
ms.custom: template-tutorial #Required; leave this attribute/value as-is.
1212
#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
5555
Create a virtual network and a subnet to place your web servers in.
5656

5757
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:
6060

6161
| Setting | Value |
6262
|---------|-------|
@@ -67,23 +67,23 @@ Create a virtual network and a subnet to place your web servers in.
6767
| Name | Enter *myTMVNet*. |
6868
| Region | Select your region. |
6969

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:
7272

7373
| Setting | Value |
7474
|---------|-------|
7575
| IPv4 address space | Enter *10.10.0.0/16*. |
7676

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**:
7878

7979
| Setting | Value |
8080
|---------|-------|
8181
| Subnet name | Enter *WebSubnet*. |
8282
| Subnet address range | Enter *10.10.0.0/24*. |
8383

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**.
8787

8888
## Create web server virtual machines
8989

@@ -94,8 +94,8 @@ Create two Windows Server virtual machines, and install IIS web server on them,
9494
Create two Windows Server 2019 virtual machines.
9595

9696
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:
9999

100100
| Setting | Value |
101101
|---------|-------|
@@ -117,9 +117,8 @@ Create two Windows Server 2019 virtual machines.
117117
| Public inbound ports | Select **None**. |
118118

119119

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:
123122

124123
| Setting | Value |
125124
|---------|-------|
@@ -131,9 +130,9 @@ Create two Windows Server 2019 virtual machines.
131130
| Public inbound ports | Select **Allow selected ports**. |
132131
| Select inbound ports | Select **HTTP (80)**, **HTTPS (443)** and **RDP (3389)**. |
133132

134-
1. Select **Review + create**.
135-
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.
137136

138137
Each virtual machine deployment may take a few minutes to complete.
139138

@@ -142,44 +141,44 @@ Each virtual machine deployment may take a few minutes to complete.
142141
Install IIS on both **Web-01** and **Web-02** virtual machines.
143142

144143
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**.
150149

151150
:::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.":::
152151

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.
158157

159158
:::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.":::
160159

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*.
162161

163162
### Add a DNS label
164163

165164
Public IP addresses need DNS labels to work with Traffic Manager.
166165

167166
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**.
172171

173172
:::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":::
174173

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**.
176175

177176
## Create a Traffic Manager profile
178177

179178
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:
183182

184183
| Setting | Value |
185184
|---------|-------|
@@ -190,10 +189,9 @@ Public IP addresses need DNS labels to work with Traffic Manager.
190189

191190
:::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.":::
192191

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:
197195

198196
| Setting | Value |
199197
|---------|-------|
@@ -204,9 +202,8 @@ Public IP addresses need DNS labels to work with Traffic Manager.
204202

205203
:::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":::
206204

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:
210207

211208
| Setting | Value |
212209
|---------|-------|
@@ -220,33 +217,36 @@ Public IP addresses need DNS labels to work with Traffic Manager.
220217
Create an alias record that points to the Traffic Manager profile.
221218

222219
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**.
229226

230227
:::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":::
231228

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+
232232
## Test the alias record
233233

234234
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.
237237

238238
## Clean up resources
239239

240240
When no longer needed, you can delete all resources created in this tutorial by following these steps:
241241

242242
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.
249+
8. Select **Delete** and then **Yes**.
250250

251251
## Next steps
252252

0 commit comments

Comments
 (0)