Skip to content

Commit 70188ce

Browse files
author
Michael Bender
committed
New includes and edits
1 parent 47279a5 commit 70188ce

File tree

6 files changed

+154
-110
lines changed

6 files changed

+154
-110
lines changed

articles/load-balancer/tutorial-load-balancer-standard-public-zonal-portal.md

Lines changed: 3 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -42,117 +42,13 @@ Sign in to the [Azure portal](https://portal.azure.com).
4242

4343
[!INCLUDE [load-balancer-public-create](../../includes/load-balancer-public-create.md)]
4444

45-
## Create virtual machines
46-
47-
In this section, you'll create three VMs (**lb-VM1**, **lb-VM2**, and **lb-VM3**) in one zone (**Zone 1**).
48-
49-
These VMs are added to the backend pool of the load balancer that was created earlier.
50-
51-
1. On the upper-left side of the portal, select **Create a resource** > **Compute** > **Virtual machine**.
52-
53-
2. In **Create a virtual machine**, type or select the values in the **Basics** tab:
54-
55-
| Setting | Value |
56-
|-----------------------|----------------------------------|
57-
| **Project Details** | |
58-
| Subscription | Select your Azure subscription |
59-
| Resource Group | Select **load-balancer-rg** |
60-
| **Instance details** | |
61-
| Virtual machine name | Enter **lb-VM1** |
62-
| Region | Select **(US) East US** |
63-
| Availability Options | Select **Availability zone** |
64-
| Availability zone | Select **1** |
65-
| Image | Select **Windows Server 2019 Datacenter - Gen1** |
66-
| Azure Spot instance | Leave the default of unchecked. |
67-
| Size | Choose VM size or take default setting |
68-
| **Administrator account** | |
69-
| Username | Enter a username |
70-
| Password | Enter a password |
71-
| Confirm password | Reenter password |
72-
| **Inbound port rules** | |
73-
| Public inbound ports | Select **None** |
74-
75-
3. Select the **Networking** tab, or select **Next: Disks**, then **Next: Networking**.
76-
77-
4. In the Networking tab, select or enter:
78-
79-
| Setting | Value |
80-
|-|-|
81-
| **Network interface** | |
82-
| Virtual network | **lb-vnet** |
83-
| Subnet | **myBackendSubnet** |
84-
| Public IP | Select **None**. |
85-
| NIC network security group | Select **Advanced**|
86-
| Configure network security group | Select **Create new**. </br> In the **Create network security group**, enter **lb-NSG** in **Name**. </br> Under **Inbound rules**, select **+Add an inbound rule**. </br> Under **Service**, select **HTTP**. </br> Under **Priority**, enter **100**. </br> In **Name**, enter **lb-NSG-Rule** </br> Select **Add** </br> Select **OK** |
87-
| **Load balancing** |
88-
| Place this virtual machine behind an existing load-balancing solution? | Select the check box. |
89-
| **Load balancing settings** |
90-
| Load-balancing options | Select **Azure load balancing** |
91-
| Select a load balancer | Select **load-balancer** |
92-
| Select a backend pool | Select **lb-backend-pool** |
93-
94-
7. Select **Review + create**.
95-
96-
8. Review the settings, and then select **Create**.
97-
98-
9. Follow the steps 1 to 8 to create two more VMs with the following values and all the other settings the same as **lb-VM1**:
99-
100-
| Setting | VM 2| VM 3|
101-
| ------- | ----- |---|
102-
| Name | **lb-VM2** |**lb-VM3**|
103-
| Availability zone | **1** |**1**|
104-
| Network security group | Select the existing **lb-NSG**| Select the existing **lb-NSG**|
45+
[!INCLUDE [load-balancer-create-virtual-machine-zonal](../../includes/load-balancer-create-virtual-machine-zonal.md)]
10546

10647
[!INCLUDE [ephemeral-ip-note.md](../../includes/ephemeral-ip-note.md)]
10748

108-
## Install IIS
49+
[!INCLUDE [load-balancer-install-iis](../../includes/load-balancer-install-iis.md)]
10950

110-
1. Select **All services** in the left-hand menu, select **All resources**, and then from the resources list, select **lb-VM1** that is located in the **load-balancer-rg** resource group.
111-
112-
2. On the **Overview** page, select **Connect**, then **Bastion**.
113-
114-
3. Select **Use Bastion**.
115-
116-
4. Enter the username and password entered during VM creation.
117-
118-
5. Select **Connect**.
119-
120-
6. On the server desktop, navigate to **Windows Administrative Tools** > **Windows PowerShell**.
121-
122-
7. In the PowerShell Window, run the following commands to:
123-
124-
* Install the IIS server
125-
* Remove the default iisstart.htm file
126-
* Add a new iisstart.htm file that displays the name of the VM:
127-
128-
```powershell
129-
# Install IIS server role
130-
Install-WindowsFeature -name Web-Server -IncludeManagementTools
131-
132-
# Remove default htm file
133-
Remove-Item C:\inetpub\wwwroot\iisstart.htm
134-
135-
# Add a new htm file that displays server name
136-
Add-Content -Path "C:\inetpub\wwwroot\iisstart.htm" -Value $("Hello World from " + $env:computername)
137-
```
138-
139-
8. Close the Bastion session with **lb-VM1**.
140-
141-
9. Repeat steps 1 to 8 to install IIS and the updated iisstart.htm file on **lb-VM2** and **lb-VM3**.
142-
143-
## Test the load balancer
144-
145-
1. In the search box at the top of the page, enter **Load balancer**. Select **Load balancers** in the search results.
146-
147-
2. Click the load balancer you created, **myLoadBalancer**. On the **Frontend IP configuration** page for your load balancer, locate the public **IP address**.
148-
149-
3. Copy the public IP address, and then paste it into the address bar of your browser. The custom VM page of the IIS Web server is displayed in the browser.
150-
151-
:::image type="content" source="./media/tutorial-load-balancer-standard-zonal-portal/load-balancer-test.png" alt-text="Screenshot of load balancer test":::
152-
153-
## Clean up resources
154-
155-
When no longer needed, delete the resource group, load balancer, and all related resources. To do so, select the resource group **load-balancer-rg** that contains the resources and then select **Delete**.
51+
[!INCLUDE [load-balancer-cleanup-resources](../../includes/load-balancer-cleanup-resources.md)]
15652

15753
## Next steps
15854

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: include file
3+
description: include file
4+
services: load-balancer
5+
author: mbender-ms
6+
ms.service: load-balancer
7+
ms.topic: include
8+
ms.date: 12/04/2023
9+
ms.author: mbender
10+
ms.custom: include file
11+
---
12+
13+
## Clean up resources
14+
15+
When no longer needed, delete the resource group, load balancer, and all related resources. To do so, select the resource group **load-balancer-rg** that contains the resources and then select **Delete**.

includes/load-balancer-create-2-virtual-machines.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: include file
33
description: include file
4-
services: virtual-network
4+
services: load-balancer
55
author: mbender-ms
6-
ms.service: virtual-network
6+
ms.service: load-balancer
77
ms.topic: include
8-
ms.date: 10/19/2023
8+
ms.date: 12/04/2023
99
ms.author: mbender
1010
ms.custom: include file
1111
---
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
title: include file
3+
description: include file
4+
services: load-balancer
5+
author: mbender-ms
6+
ms.service: load-balancer
7+
ms.topic: include
8+
ms.date: 12/05/2023
9+
ms.author: mbender
10+
ms.custom: include file
11+
---
12+
13+
## Create virtual machines
14+
15+
In this section, you create two VMs (**lb-vm1** and **lb-VM2**) in a single zone (**Zone 1**).
16+
17+
These VMs are added to the backend pool of the load balancer that was created earlier.
18+
19+
1. In the search box at the top of the portal, enter **Virtual machine**. Select **Virtual machines** in the search results.
20+
21+
1. In **Virtual machines**, select **+ Create** > **Azure virtual machine**.
22+
23+
1. In **Create a virtual machine**, enter or select the following values in the **Basics** tab:
24+
25+
| Setting | Value |
26+
|-----------------------|----------------------------------|
27+
| **Project Details** | |
28+
| Subscription | Select your Azure subscription |
29+
| Resource Group | Select **load-balancer-rg** |
30+
| **Instance details** | |
31+
| Virtual machine name | Enter **lb-VM1** |
32+
| Region | Select **((US) East US)** |
33+
| Availability Options | Select **Availability zones** |
34+
| Availability zone | Select **Zone 1** |
35+
| Security type | Select **Standard**. |
36+
| Image | Select **Windows Server 2022 Datacenter: Azure Edition - Gen2** |
37+
| Azure Spot instance | Leave the default of unchecked. |
38+
| Size | Choose VM size or take default setting |
39+
| **Administrator account** | |
40+
| Username | Enter a username |
41+
| Password | Enter a password |
42+
| Confirm password | Reenter password |
43+
| **Inbound port rules** | |
44+
| Public inbound ports | Select **None** |
45+
46+
1. Select the **Networking** tab, or select **Next: Disks**, then **Next: Networking**.
47+
48+
1. In the Networking tab, select or enter the following information:
49+
50+
| Setting | Value |
51+
| ------- | ----- |
52+
| **Network interface** | |
53+
| Virtual network | Select **lb-vnet** |
54+
| Subnet | Select **backend-subnet** |
55+
| Public IP | Select **None**. |
56+
| NIC network security group | Select **Advanced** |
57+
| Configure network security group | Skip this setting until the rest of the settings are completed. Complete after **Select a backend pool**.|
58+
| Delete NIC when VM is deleted | Leave the default of **unselected**. |
59+
| Accelerated networking | Leave the default of **selected**. |
60+
| **Load balancing** |
61+
| **Load balancing options** |
62+
| Load-balancing options | Select **Azure load balancer** |
63+
| Select a load balancer | Select **load-balancer** |
64+
| Select a backend pool | Select **lb-backend-pool** |
65+
| Configure network security group | Select **Create new**. </br> In the **Create network security group**, enter **lb-NSG** in **Name**. </br> Under **Inbound rules**, select **+Add an inbound rule**. </br> In **Service**, select **HTTP**. </br> Under **Priority**, enter **100**. </br> In **Name**, enter **lb-NSG-Rule** </br> Select **Add** </br> Select **OK** |
66+
67+
1. Select **Review + create**.
68+
69+
1. Review the settings, and then select **Create**.
70+
71+
1. Follow the steps 1 through 7 to create another VM with the following values and all the other settings the same as **lb-VM1**:
72+
73+
| Setting | VM 2
74+
| ------- | ----- |
75+
| Name | **lb-VM2** |
76+
| Availability zone | **Zone 1** |
77+
| Network security group | Select the existing **lb-NSG** |

includes/load-balancer-install-iis.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: include file
3+
description: include file
4+
services: load-balancer
5+
author: mbender-ms
6+
ms.service: load-balancer
7+
ms.topic: include
8+
ms.date: 12/04/2023
9+
ms.author: mbender
10+
ms.custom: include file
11+
---
12+
13+
## Install IIS
14+
15+
1. Select **All services** in the left-hand menu, select **All resources**, and then from the resources list, select **lb-VM1** that is located in the **load-balancer-rg** resource group.
16+
17+
1. On the **Overview** page, select **Connect**, then **Bastion**.
18+
19+
1. Select **Use Bastion**.
20+
21+
1. Enter the username and password entered during VM creation.
22+
23+
1. Select **Connect**.
24+
25+
1. On the server desktop, navigate to **Windows Administrative Tools** > **Windows PowerShell**.
26+
27+
1. In the PowerShell Window, run the following commands to:
28+
29+
* Install the IIS server
30+
* Remove the default iisstart.htm file
31+
* Add a new iisstart.htm file that displays the name of the VM:
32+
33+
```powershell
34+
# Install IIS server role
35+
Install-WindowsFeature -name Web-Server -IncludeManagementTools
36+
37+
# Remove default htm file
38+
Remove-Item C:\inetpub\wwwroot\iisstart.htm
39+
40+
# Add a new htm file that displays server name
41+
Add-Content -Path "C:\inetpub\wwwroot\iisstart.htm" -Value $("Hello World from " + $env:computername)
42+
```
43+
44+
1. Close the Bastion session with **lb-VM1**.
45+
46+
1. Repeat steps to install IIS and the updated iisstart.htm file on **lb-VM2**.
47+
48+
## Test the load balancer
49+
50+
1. In the search box at the top of the page, enter **Load balancer**. Select **Load balancers** in the search results.
51+
52+
1. Click the load balancer you created, **load-balancer**. On the **Frontend IP configuration** page for your load balancer, locate the public **IP address**.
53+
54+
1. Copy the public IP address, and then paste it into the address bar of your browser. The custom VM page of the IIS Web server is displayed in the browser.
55+
56+
:::image type="content" source="./media/load-balancer-test-iis/load-balancer-test.png" alt-text="Screenshot of load balancer test":::
27.8 KB
Loading

0 commit comments

Comments
 (0)