Deploy a NetScaler VPX HA pair in Azure using the secondary IP configurations

Last published : Dec 03, 2026
You can use the secondary IP configurations of the network interfaces (NICs) to deploy a NetScaler VPX™ high availability (HA) pair in Azure without an Azure Load Balancer (ALB). Both VPX instances are in the same virtual network (VNet). During failover, the new primary node takes over the secondary private IP addresses of the client-side and server-side NICs, along with their associated public IP addresses.
Important:
Before starting the deployment, ensure that your Azure environment meets the prerequisites to avoid any issues during the setup.
The following are some of the benefits of using secondary IP configurations:
  • Simplified failover: Secondary IP addresses enable automatic migration of virtual IP addresses (VIPs) and subnet IP addresses (SNIPs) between HA nodes, ensuring seamless failover without the need for external load balancing.
  • Scalability: Multiple IP addresses can be assigned to a single NIC, allowing flexible traffic routing and scaling of services within the same VM.
  • Resilience: The ability to move secondary private IP addresses between nodes enhances network availability and provides quick recovery during node failure.
  • Cost efficiency: By eliminating the need for an ALB, you reduce infrastructure costs while maintaining high availability and traffic management within the same subnet.
The following illustration depicts an HA failover scenario by migrating secondary private IP addresses.
Azure HA pip migration

Prerequisites to deploy a NetScaler VPX™ HA pair using Azure secondary IP configurations

  • Use NetScaler version 14.1–34.42 or later.
  • Ensure that each NetScaler VPX instance can resolve and reach Azure Resource Manager (management.azure.com, TCP port 443) through its management NIC (NIC0). During a failover, the node that becomes primary calls Azure Resource Manager to move the secondary IP configurations. The managed identity and its role only authorize these calls. NetScaler sends the calls itself, so they need network access. Ensure that:
    • The management NIC or subnet has an outbound path to Azure Resource Manager, such as a public IP address, a NAT gateway, or a firewall that allows management.azure.com.
    • Any network security group on the management NIC or subnet that restricts outbound traffic allows outbound TCP port 443 to the AzureResourceManager service tag.
  • Ensure that your subscription has the new Azure control plane enabled.
Note:
If the new Azure control plane is not enabled for your subscription, high-availability deployments might experience a longer failover duration. In such cases, contact Azure support for assistance in enabling the new control plane.

How to deploy a NetScaler VPX HA pair using Azure secondary IP configurations

To deploy a NetScaler VPX HA pair using the secondary IP configurations in Azure, follow these steps:
  1. Deploy two NetScaler VPX instances in Azure, each with three network interfaces in the same resource group and VNet.
  2. Assign a managed identity to both the NetScaler VPX instances.
  3. Assign required roles to the managed identity.
  4. Assign Azure secondary IP configurations to the client and server network interfaces of the primary node.
  5. Configure the VIP and SNIP on the primary node using the Azure private IP address from the secondary IP configuration.
  6. Configure the primary private IP addresses of the server network interfaces on both the primary and secondary NetScaler instances to be the VIP, on the primary node.
  7. Configure HA on both the nodes.
Step 1. Deploy two NetScaler VPX instances (primary and secondary nodes) in the same resource group and VNet. Ensure that each NetScaler VPX instance has three NICs: NIC0, NIC1, and NIC2. Use NIC0 for management and the NetScaler IP address (NSIP), NIC1 for client traffic and the VIP, and NIC2 for server traffic and the SNIP.
For detailed steps, see Deploy two VPX instances on Azure.
Step 2. Apply either a system-assigned or a user-assigned managed identity to both the NetScaler VPX instances.
Note:
The Azure service principal is not supported for this feature.
For instructions on configuring a managed identity on NetScaler VPX, see Configure a managed identity on a virtual machine.
Step 3. Add one of the following Azure role assignments to the managed identity associated with the NetScaler VPX instances.
  • Reader and Network Contributor: Grants read-only access to Azure resources and the permissions required to manage networking resources.
  • Contributor: Provides full access to Azure resources.
Step 4. On the primary node, assign private IP addresses to NIC1 (client IP or VIP) and NIC2 (back-end server IP or SNIP).
The Azure portal automatically assigns primary private IP addresses to the configured NICs. To assign more private IP addresses for the VIP and SNIP network interfaces, use secondary IP configurations.
To assign a secondary IP configuration to a network interface in Azure, follow these steps:
  1. Log in to the Azure Portal and navigate to Virtual Machines.
  2. Select the virtual machine associated with the network interface.
  3. In the virtual machine settings, go to Network settings and select the NIC to which you want to add a secondary private IP address.
  4. In the Network Interface settings, click the IP configurations tab.
  5. Click Add to assign an IP configuration of type Secondary.
    • If you choose a static allocation method, enter a specific IPv4 address within the subnet range for the instance.
    • If you choose a dynamic allocation method, Azure automatically assigns an IP address.
  6. Click Add or Save to apply the changes.
Step 5. Configure VIP and SNIP on the primary node using the private IP addresses from the secondary IP configuration.
  1. Access the primary node using SSH. Open an SSH client and run the following command:
    ssh -i <location of your private key> nsroot@<public DNS of the instance>
  2. Configure the VIP and SNIP addresses.
    For configuring the VIP address, run the following command:
    add ns ip <IPAddress> <netmask> -type VIP
    Example:
    add ns ip 192.0.2.11 255.255.255.0 -type VIP
    For configuring the SNIP address, run the following command:
    add ns ip <IPAddress> <netmask> -type SNIP
    Example:
    add ns ip 192.0.3.11 255.255.255.0 -type SNIP
  3. Save the configuration by running the save config command.
  4. Verify the configured IP addresses using the following command:
    show ns ip
Step 6. Configure the primary private IP addresses of the server network interfaces on both the primary and secondary NetScaler instances to be the VIP, on the primary node.
  1. Access the primary node using SSH. Open an SSH client and run the following command:
    ssh -i <location of your private key> nsroot@<public DNS of the instance>
    Example:
    ssh -i ~/.ssh/mykey.pem nsroot@primary-instance.eastus.cloudapp.azure.com
  2. On the primary node, configure the primary private IP address of NIC2 (back-end server NIC) of both the primary and secondary NetScaler instances to be the VIP:
    add ns ip <private IPaddress of primary instance> <netmask> -type VIP

    add ns ip <private IPaddress of secondary instance> <netmask> -type VIP
    Example:
    add ns ip 192.0.3.10 255.255.255.0 -type VIP

    add ns ip 192.0.3.20 255.255.255.0 -type VIP
Step 7. Configure HA on both nodes.
  1. On the primary node, open a Shell client and run the following command:
    add ha node <peer node id> <private IP address of the management NIC of the secondary node>
    Example:
    add ha node 1 192.0.1.20
  2. On the secondary node, run the following command:
    add ha node <peer node id> <private IP address of the management NIC of the primary node>
    Example:
    add ha node 1 192.0.1.10
  3. Save the configuration by running the save config command.
  4. Verify the configured HA nodes by running the show ha node command.
    During failover, the secondary IP configurations for the VIP and SNIP network interfaces are moved from the previous primary node to the new primary node.
Note:
Keep the default route through the management subnet gateway. If you change the default route to the client-side or server-side subnet gateway, see Configure routing for management traffic. Then test a failover and a failback.

Deploy a NetScaler VPX HA pair in Azure using solution templates

The Azure solution templates automate NetScaler VPX High Availability (HA) deployment, reducing deployment time and eliminating manual configuration on both Azure and NetScaler. Customers can deploy a production-ready HA solution with minimal effort using these solution templates.
This solution deploys two NetScaler VPX instances across different Availability Zones or Availability Sets for high availability and fault tolerance.
For more information about solution templates, see Microsoft documentation.

Key features of the NetScaler VPX Azure solution deployment

  • High availability: Deploys two NetScaler VPX instances across separate Azure Availability Zones with automated HA configuration and peer node discovery.
  • Networking:
    • Three-NIC deployment: Utilizes dedicated Management, Client, and Server subnets for network segmentation.
    • Virtual network support: Works with both new and existing virtual networks.
    • Public IP address configuration: Allows configurable public IP addresses for both management and client traffic.
    • Accelerated networking: Option to enable or disable accelerated networking.
  • Security and compliance:
    • Network security groups (NSGs): Includes customizable inbound rules for enhanced security.
    • RBAC integration: Automatic role assignments through system-assigned managed identity.

Prerequisites

Before you begin, ensure that you have the following:
  • An active Azure subscription with administrative permissions.
  • An Azure region with Availability Zone support.
  • NetScaler license files (Bring Your Own License).

Azure Marketplace offer details (Bring Your Own License - BYOL)

When deploying NetScaler VPX on Azure using the solution template, use the Bring Your Own License (BYOL) model.
  • Offer ID: netscalervpx-141
  • SKU/Plan ID: netscaler_141_byol_private
  • Publisher: Citrix

Deploying NetScaler VPX HA pair in Azure using solution templates

This section describes how to deploy NetScaler VPX using the Azure Marketplace portal.
Step 1. Deploy from Azure Marketplace.
  1. Sign in to the Azure portal.
  2. Search for NetScaler VPX in Azure Marketplace to find the deployment options.
    Azure Marketplace
Step 2. Select a deployment plan.
Choose one of the following plans based on your availability requirements:
  • NetScaler VPX HA (Availability Zone) via Secondary IP - BYOL
  • NetScaler VPX HA (Availability Set) via Secondary IP - BYOL
Azure deployment plan
Step 3. Configure basic settings and administrator credentials.
  • Subscription - Select your Azure subscription.
  • Resource group - Create a new resource group or select an existing one.
  • Region - Select an Azure region that supports Availability Zones or Availability Sets.
  • VM name prefix - Enter a prefix for the NetScaler VPX virtual machine instances.
  • Release version - Specify the desired NetScaler VPX version (for example, 14.1).
  • Administrator username - Enter an administrator user name.
  • Authentication type - Select Password or SSH public key.
  • Credentials - Enter your password or SSH key based on the authentication type that you selected.
Configure basic settings
Step 4. Configure virtual machine settings.
  • VM size - Select a size that meets your performance requirements.
  • OS disk type - Select a storage disk type (for example, Standard_LRS or Premium_LRS).
  • Publish monitoring metrics - Enable this option to send NetScaler ADC performance metrics to Azure Monitor.
Virtual machine settings
Step 5. Configure network settings.
  • Virtual network - Create a new virtual network or select an existing one.
  • Address space - Specify the CIDR block for a new virtual network.
  • Subnets - Configure Management, Client, and Server subnets.
  • Accelerated networking - Enable for improved network performance on key interfaces.
  • Management public IP addresses - Assign public IP addresses to VM 1 and VM 2 (recommended).
  • Client public IP address - Optionally assign a public IP address for client access.
  • DNS labels - Add unique DNS labels if DNS resolution is required.
  • Public inbound ports - Allow required ports (for example, SSH-22, HTTP-80, HTTPS-443).
Azure network settingsAzure network settings2
Step 6. Review and complete deployment.
  1. Review all the chosen configuration parameters to ensure that they meet your requirements.
  2. Accept the terms and conditions.
  3. Select Create to begin deployment.
Review the deployment
Step 7. Verify your deployment.
After deployment completes, verify that your NetScaler HA pair is configured correctly and operating as expected.
  1. Verify HA node status.
    1. Connect to one of the NetScaler instances using SSH.
    2. Run the show ha node command to check the HA node status.
    3. Verify the following:
      • Both nodes appear in the output
      • Synchronization (Sync) status is healthy
      • INC mode is disabled on both nodes
    Verify HA node status
    Note:
    Keep the default route through the management subnet gateway. If you change the default route to the client-side or server-side subnet gateway, see Configure routing for management traffic. Then test a failover and a failback.
  2. Validate IP address configuration.
    Run the show ns ip command on the NetScaler instance. Check the output to verify that all Virtual IP addresses (VIPs) and Subnet IP addresses (SNIPs) are present and configured correctly.
    Verify HA node status
  3. Perform a high availability failover test.
    We recommend you to perform a manual failover test to verify the resilience of your HA setup.
    1. Run the force ha failover -force command to initiate the failover.
    2. Verify the following:
      • The failover completes successfully
      • All secondary IP configurations transfer to the new primary node

Configure routing for management traffic

During a failover, the NetScaler node that becomes primary does the following three things:
  1. It gets an access token for its managed identity from the Azure Instance Metadata Service (169.254.169.254).
  2. It resolves management.azure.com through the DNS servers of the virtual network (Azure DNS, 168.63.129.16, by default).
  3. It calls Azure Resource Manager with that token to move the secondary IP configurations.
If your deployment requires the default route through the client-side or server-side subnet gateway, add a PBR for the NSIP of each node (primary and secondary) with the management subnet gateway as the next hop. Otherwise, NetScaler HA failover occurs but the secondary IP configurations are not moved to the current primary.
Run the following commands on the primary node. HA synchronizes the PBRs to the secondary node.
add ns pbr pbr_nsip_vm1 ALLOW -srcIP = 192.0.1.10 -nextHop 192.0.1.1 -priority 10
add ns pbr pbr_nsip_vm2 ALLOW -srcIP = 192.0.1.20 -nextHop 192.0.1.1 -priority 20
apply ns pbrs
save config
In this example:
To verify the configuration:
  1. Run show ns pbr on both nodes, and check that both PBRs show Applied Status: APPLIED.
  2. Run force ha failover -force, and check that the secondary IP configurations move to the new primary node.
  3. Fail back, and check that the secondary IP configurations move back to the original primary node.