Skip to content

Commit 8ef5b71

Browse files
authored
Merge pull request #312327 from asudbring/tsk556119-sfi-bastion
SFI Bastion security update - DNS alias public IP tutorial
2 parents ac5098d + b66ffb1 commit 8ef5b71

1 file changed

Lines changed: 34 additions & 28 deletions

File tree

articles/dns/tutorial-alias-pip.md

Lines changed: 34 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: dns
55
author: asudbring
66
ms.service: azure-dns
77
ms.topic: tutorial
8-
ms.date: 11/30/2023
8+
ms.date: 03/03/2026
99
ms.author: allensu
1010
ms.custom: template-tutorial #Required; leave this attribute/value as-is.
1111
#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.
7676

7777
## Create a web server virtual machine
7878

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

8181
### Create the virtual machine
8282

83-
Create a Windows Server 2019 virtual machine.
83+
Create an Ubuntu virtual machine.
8484

8585
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.
8686
1. In **Virtual machines**, select **+ Create** and then select **Azure virtual machine**.
@@ -92,16 +92,17 @@ Create a Windows Server 2019 virtual machine.
9292
| Subscription | Select your Azure subscription. |
9393
| Resource Group | Select **PIPResourceGroup**. |
9494
| **Instance details** | |
95-
| Virtual machine name | Enter **Web-01**. |
95+
| Virtual machine name | Enter **web-01**. |
9696
| Region | Select **(US) East US**. |
9797
| Availability options | Select **No infrastructure redundancy required**. |
9898
| Security type | Select **Standard**. |
99-
| Image | Select **Windows Server 2019 Datacenter - Gen2**. |
99+
| Image | Select **Ubuntu Server 24.04 LTS - x64 Gen2**. |
100100
| Size | Select your VM size. |
101101
| **Administrator account** | |
102+
| Authentication type | Select **SSH public key**. |
102103
| Username | Enter a username. |
103-
| Password | Enter a password. |
104-
| Confirm password | Reenter the password. |
104+
| SSH public key source | Select **Generate new key pair**. |
105+
| Key pair name | Enter a name for the key pair. |
105106
| **Inbound port rules** | |
106107
| Public inbound ports | Select **None**. |
107108

@@ -118,35 +119,40 @@ Create a Windows Server 2019 virtual machine.
118119
| Public IP | Take the default Standard SKU public IP. |
119120
| NIC network security group | Select **Basic**. |
120121
| Public inbound ports | Select **Allow selected ports**. |
121-
| Select inbound ports | Select **HTTP (80)**, **HTTPS (443)** and **RDP (3389)**. |
122+
| Select inbound ports | Select **HTTP (80)** and **HTTPS (443)**. |
122123

123124
1. Select **Review + create**.
124125
1. Review the settings, and then select **Create**.
125126

126127
This deployment may take a few minutes to complete.
127128

128129
> [!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.
130131
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**.
132144

133-
Install IIS web server on **Web-01**.
145+
1. Select **RunShellScript**.
134146

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

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.":::
149+
```bash
150+
sudo apt-get update && sudo apt-get install -y nginx
151+
```
144152

145-
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**.
148154

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

151157
## Create an alias record
152158

@@ -157,18 +163,18 @@ Create an alias record that points to the public IP address.
157163
1. In the **Add record set**, enter *web01* in the **Name**.
158164
1. Select **A** for the **Type**.
159165
1. Select **Yes** for the **Alias record set**, and then select the **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**.
161167
1. Select **OK**.
162168

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":::
164170

165171
## Test the alias record
166172

167173
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.
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.
170176
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.
172178
1. After the virtual machine restarts, note the new public IP address for the virtual machine.
173179
1. From a web browser, browse again to `web01.contoso.com`.
174180

0 commit comments

Comments
 (0)