# Add Load Balancer during Provisioning

## About this task

In the Instance Provisioning wizard, Load Balancers can be configured in the Automation > LoadBalancer section.

## Procedure

1. Navigate to Provisioning > Instances.
2. Select + ADD.
3. Select an Instance Type that supports scaling. (ENABLE SCALING (HORIZONTAL) flagged on Instance Type configuration)
4. Proceed with Instance configuration to the Automation section.
5. Fill in the following: 

   VIP ADDRESS
   :   Define IP Address for the Virtual Server
       :   - Example: 10.30.23.191

   VIP PORT
   :   Define port for the Virtual Server
       :   - Example: 80

   VIP HOSTNAME
   :   Define hostname that will resolve to the VIP IP.
       :   - Example: jwDemoHaApp59.den.example.com

   VIRTUAL SERVICE NAME
   :   Define name for the Virtual Service. Defaults to `${instance.name}`

   BALANCE MODE
   :   Specify balance mode for the VIP
       :   - Least Connections
           - Round Robin

   STICKY MODE
   :   Specify sticky session options for the VIP
       :   - Source IP
           - Cookie

   SHARED VIP ADDRESS
   :   Select if VIP is shared, then enter DIRECT VIP ADDRESS

   SSL CERT
   :   SSL Certificate that will be applied to the VIP.
       :   - No SSL
           - Select existing Certificate from Infrastructure  >  Keys & Certs or from a Trust Provider Integration.

       USE EXTERNAL ADDRESS FOR BACKEND NODES
       :   - Select if traffic from LB to Backend Nodes needs to be sent to the External Addresses, or leave deselected to use Internal Addresses for Backed Nodes.
6. Optionally configure auto-scaling configuration in the `Scale` section
7. Select NEXT and provision the Instance.

## Results

After all nodes in the Instance are provisioned, the LB configuration will be added to the Instance and Virtual Servers, Services and Servers will be created and configured on the NetScaler. The Load Balancer settings and status will be visible in the Instance details page LOAD BALANCER section, with additional details, links, and configurations options available in the `SCALE` tab.
