Azure Network Load Balancer task

Azure DevOps Services

Use this task to connect or disconnect an Azure virtual machine's network interface to a load balancer's address pool.

YAML snippet

# Azure Network Load Balancer
# Connect or disconnect an Azure virtual machine's network interface to a Load Balancer's back end address pool
- task: AzureNLBManagement@1
  inputs:
    azureSubscription: 
    resourceGroupName: 
    loadBalancer: 
    action: # Options: disconnect, connect

Arguments

Argument Description
ConnectedServiceName
Azure Subscription
(Required) Select the Azure Resource Manager subscription for the deployment
Argument aliases: azureSubscription
ResourceGroupName
Resource Group
(Required) Select the resource group name
LoadBalancer
Load Balancer Name
(Required) Select or enter the load balancer
Action
Action
(Required)
Disconnect: Removes the virtual machine’s primary network interface from the load balancer’s backend pool. So that it stops receiving network traffic.
Connect: Adds the virtual machine’s primary network interface to load balancer backend pool. So that it starts receiving network traffic based on the load balancing rules for the load balancer resource

Open source

This task is open source on GitHub. Feedback and contributions are welcome.