Azure Load Balancer Quick Start Guide
This quick start guide describes how to set up and configure a load balancing solution for DxEnterprise running in Azure. Using this guide, the user will create an availability set and virtual machines, configure applications, and create and configure an Azure Load Balancer that will allow access to the resources assigned to the DxEnterprise Vhost.
Prerequisites
- An Azure account. Go to the Microsoft Azure Portal to set up an account.
Create the Availability Set and Virtual Machines
Create the Availability Set
-
Log in to the Azure Management Portal.
-
Search for Availability Sets using the top search bar, then select Add.
-
Assign the availability set to a resource group and give it a name.
-
Select Review + Create in the bottom-left corner, then select Create.
Create the Virtual Machines
-
Search for DxEnterprise in the top search bar and select one of the DxEnterprise offers available under Marketplace.
licensingDxEnterprise for Availability Groups (AGS) comes pre-configured with a pay-as-you-go license. If you do not want to use that image, select DxEnterprise (BYOL) instead.
For BYOL images, a valid DxEnterprise license will be required later in this guide. A fully featured Developer Edition is available free for non-production use. To purchase DxEnterprise software for production workloads, visit the DH2i Store.
-
Under Select a software plan, choose an operating system and select Create.
-
Configure a virtual machine template and assign it to the availability set.
-
Assign the VM to the same resource group as the availability set and give it a name.
-
Under Instance Details > Availability options, select Availability set.
-
A new drop-down box will appear. Select the availability set created in step 4 of the previous section.
-
Set up an authentication type.
-
Under Networking, select Create New and set the SKU of the public IP address to standard.
cautionThere is an option under network settings to place the virtual machine behind an existing load balancing solution. Do not select this option.
-
Select Review + Create, then Create.
-
-
Repeat steps 1-3 for any additional VMs.
-
The availability set has been created with VMs assigned to it. Return to the Azure homepage by selecting Microsoft Azure in the top-left corner.
Configure DxEnterprise and Applications
-
Application(s) must be installed and configured in DxEnterprise before continuing. DH2i provides quick start guides for some applications – such as Microsoft SQL Server – running within a VM on Azure. Links for these guides are provided in the Next Steps section below, but other configurations can also utilize the Azure load balancer. After configuring the application, leave the console or DxAdmin window open.
-
After configuring DxEnterprise and your application on the VM, add a probe port to the Vhost using DxCLI or DxAdmin.
- DxAdmin
- DxCLI
-
Right-click on the Vhost and select Update virtual host.
-
Select the pencil icon to the right of the Probe Port field, then enter a port number into the field. More than one probe port may be added to the Vhost by separating the ports with a comma (,).
-
Note the Vhost IP and probe port for later use. Save the changes by selecting OK at the bottom of the window.
-
Run the command
dxcli set-vhost-ilbports
to add a load balancer port to the Vhost.Example
dxcli set-vhost-ilbports VHOST1 50000
-
Note the Vhost IP and probe port for later use.
-
After adding the probe port to the Vhost, return to the Azure Management Portal.
Create and Configure the Azure Load Balancer
-
Search for Load Balancers in the top search bar, then select Add.
-
Assign the load balancer to the resource group and give it a name.
-
Set the Type to Internal.
-
Set the SKU to Standard.
-
Assign the load balancer to the same virtual network as the VMs.
-
Set the IP address assignment to Static.
-
Enter the IP address for the load balancer. This is the same IP used for the Vhost in step 2 of the previous section.
-
Select Review + Create in the bottom-left corner, then select Create.
-
-
After the deployment completes, select the Go to resource box. Alternatively, the resource can be found by navigating to the resource group from the Azure homepage.
-
Select Backend pools from the options in the left pane to add the VMs to the load balancer's backend pool.
-
Select Add near the top.
-
Assign a name to the backend pool.
-
Under virtual machines, select Add and add the DxEnterprise VMs to the list.
-
Select Add at the bottom to add the backend pool to the load balancer.
-
-
Select Health probes from the options in the left pane to add a health probe to the load balancer.
-
Select Add near the top.
-
Assign a name for the health probe.
-
Set the Port to the Vhost probe port from step 2 of the previous section.
-
Select OK at the bottom to add the health probe to the load balancer.
-
-
Select Load balancing rules from the options in the left pane to allow traffic through the IP address.
-
Select Add near the top.
-
Assign a name for the load balancing rule.
-
Select HA Ports to allow all traffic through the Frontend IP Address.
-
Set Floating IP to Enabled.
-
Select OK at the bottom to add the rule to the load balancer.
-
Next Steps
- SQL Server Availability Groups with DxCLI Quick Start Guide
- SQL Server Availability Groups with DxAdmin Quick Start Guide
- SQL Server HA Instances on Linux Quick Start Guide