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
| 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. |
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:
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**.
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**.
| 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**|
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:
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":::
0 commit comments