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-pip.md
+34-28Lines changed: 34 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ services: dns
5
5
author: asudbring
6
6
ms.service: azure-dns
7
7
ms.topic: tutorial
8
-
ms.date: 11/30/2023
8
+
ms.date: 03/03/2026
9
9
ms.author: allensu
10
10
ms.custom: template-tutorial #Required; leave this attribute/value as-is.
11
11
#Customer intent: As an experienced network administrator, I want to configure Azure an DNS alias record to refer to an Azure public IP address.
@@ -76,11 +76,11 @@ Create a virtual network and a subnet to place your web server in.
76
76
77
77
## Create a web server virtual machine
78
78
79
-
Create a Windows Server virtual machine and then install IIS web server on it.
79
+
Create a Linux virtual machine and install NGINX web server on it.
80
80
81
81
### Create the virtual machine
82
82
83
-
Create a Windows Server 2019 virtual machine.
83
+
Create an Ubuntu virtual machine.
84
84
85
85
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.
86
86
1. In **Virtual machines**, select **+ Create** and then select **Azure virtual machine**.
@@ -92,16 +92,17 @@ Create a Windows Server 2019 virtual machine.
92
92
| Subscription | Select your Azure subscription. |
1. Review the settings, and then select **Create**.
125
126
126
127
This deployment may take a few minutes to complete.
127
128
128
129
> [!NOTE]
129
-
> **Web-01** virtual machine has an attached NIC with a Standard SKU dynamic public IP that changes every time the virtual machine is restarted.
130
+
> The **web-01** virtual machine has an attached NIC with a Standard SKU dynamic public IP that changes every time the virtual machine is restarted.
130
131
131
-
### Install IIS web server
132
+
> [!NOTE]
133
+
> The network security group rules block inbound SSH access from the internet. To run commands on the virtual machine, use the **Run command** feature in the Azure portal or deploy Azure Bastion. For more information about Azure Bastion, see [Quickstart: Deploy Azure Bastion with default settings](../bastion/quickstart-host-portal.md).
134
+
135
+
### Install NGINX web server
136
+
137
+
Install NGINX web server on **web-01** using the **Run command** feature in the Azure portal.
138
+
139
+
1. In the search box at the top of the portal, enter *virtual machine*. Select **Virtual machines** in the search results.
140
+
141
+
1. Select the **web-01** virtual machine.
142
+
143
+
1. In the **Operations** section of the left menu, select **Run command**.
132
144
133
-
Install IIS web server on **Web-01**.
145
+
1. Select **RunShellScript**.
134
146
135
-
1. In the **Overview** page of **Web-01**, select **Connect** and then **RDP**.
136
-
1. In the **RDP** page, select **Download RDP File**.
137
-
1. Open *Web-01.rdp*, and select **Connect**.
138
-
1. Enter the username and password entered during virtual machine creation.
139
-
1. On the **Server Manager** dashboard, select **Manage** then **Add Roles and Features**.
140
-
1. Select **Server Roles** or select **Next** three times. On the **Server Roles** screen, select **Web Server (IIS)**.
141
-
1. Select **Add Features**, and then select **Next**.
147
+
1. In the **Run Command Script** pane, enter the following command:
142
148
143
-
:::image type="content" source="./media/tutorial-alias-pip/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 Web Server role.":::
1. Select **Confirmation** or select **Next** three times, and then select **Install**. The installation process takes a few minutes to finish.
146
-
1. After the installation finishes, select **Close**.
147
-
1. Open a web browser. Browse to **localhost** to verify that the default IIS web page appears.
153
+
1. Select **Run**.
148
154
149
-
:::image type="content" source="./media/tutorial-alias-pip/iis-web-server.png" alt-text="Screenshot of Internet Explorer showing the I I S Web Server default web page.":::
155
+
1. Wait for the command to complete. The output displays the installation progress and finishes when NGINX is installed.
150
156
151
157
## Create an alias record
152
158
@@ -157,18 +163,18 @@ Create an alias record that points to the public IP address.
157
163
1. In the **Add record set**, enter *web01*in the **Name**.
158
164
1. Select **A**for the **Type**.
159
165
1. Select **Yes**for the **Alias record set**, and thenselectthe**Azure Resource**for the **Alias type**.
160
-
1. Select the **Web-01-ip** public IP address for the **Azure resource**.
166
+
1. Select the **web-01-ip** public IP address for the **Azure resource**.
161
167
1. Select **OK**.
162
168
163
-
:::image type="content" source="./media/tutorial-alias-pip/add-public-ip-alias-inline.png" alt-text="Screenshot of adding an alias record to refer to the Azure public IP of the I I S web server using the Add record set page." lightbox="./media/tutorial-alias-pip/add-public-ip-alias-expanded.png":::
169
+
:::image type="content" source="./media/tutorial-alias-pip/add-public-ip-alias-inline.png" alt-text="Screenshot of adding an alias record to refer to the Azure public IP of the web server using the Add record set page." lightbox="./media/tutorial-alias-pip/add-public-ip-alias-expanded.png":::
164
170
165
171
## Test the alias record
166
172
167
173
1. In the Azure portal, enter *virtual machine*in the search box at the top of the portal, and thenselect**Virtual machines** from the search results.
168
-
1. Select the **Web-01** virtual machine. Note the public IP address in the **Overview** page.
169
-
1. From a web browser, browse to `web01.contoso.com`, which is the fully qualified domain name of the **Web-01** virtual machine. You now see the IIS default web page.
174
+
1. Select the **web-01** virtual machine. Note the public IP address in the **Overview** page.
175
+
1. From a web browser, browse to `web01.contoso.com`, which is the fully qualified domain name of the **web-01** virtual machine. You now see the NGINX default web page.
170
176
1. Close the web browser.
171
-
1. Stop the **Web-01** virtual machine, and then restart it.
177
+
1. Stop the **web-01** virtual machine, and then restart it.
172
178
1. After the virtual machine restarts, note the new public IP address for the virtual machine.
173
179
1. From a web browser, browse again to `web01.contoso.com`.
0 commit comments