Skip to content

Commit 7253292

Browse files
committed
Initial doc commit
1 parent 7bcc1f4 commit 7253292

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
title: Migrating from NIC to IP-based backend pools
3+
titleSuffix: Azure Load Balancer
4+
description: In this article,
5+
services: load-balancer
6+
author: mbender-ms
7+
ms.author: mbender
8+
ms.service: load-balancer
9+
ms.topic: how-to
10+
ms.date: 09/08/2022
11+
ms.custom: template-how-to
12+
---
13+
14+
# Migrating from NIC to IP-based backend pools
15+
16+
## What is IP-based Load Balancer
17+
18+
IP-based load balancers reference the private IP address of the resource in the backend pool rather than the resource’s NIC. IP-based load balancers enable the pre-allocation of private IP addresses in a backend pool, without having to create the backend resources themselves in advance.
19+
20+
## Migrating NIC-based backend pools to IP-based
21+
22+
To migrate a load balancer with NIC-based backend pools to IP-based with VMs (notVMSS instances) in the backend pool, you can utilize the following migration REST API.
23+
24+
Method: POST
25+
26+
URL: https://management.azure.com/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Network/loadBalancers/{lbName}/migrateToIpBased?api-version=2022-01-01
27+
28+
Request: List (string) of backend pools to be migrated.
29+
30+
A full example using the CLI to migrate all backend pools in a load balancer is shown here: az rest –m post –u “https://management.azure.com/subscriptions/MySubscriptionId/resourceGroups/MyResourceGroup/providers/Microsoft.Network/loadBalancers/MyLB/migrateToIpBased?api-version=2022-01-01”
31+
32+
A full example using the CLI to migrate a set of specific backend pool in a load balancer is shown below. To migrate a specific group of backend pools from NIC-based to IP-based, you can pass in a list of the backend pool names in the request body: az rest –m post –u “https://management.azure.com/subscriptions/MySubscriptionId/resourceGroups/MyResourceGroup/providers/Microsoft.Network/loadBalancers/MyLB/migrateToIpBased?api-version=2022-01-01”
33+
34+
-b {\"Pools\":[\"MyBackendPool\"]}
35+
36+
## Upgrading LB with VMSS attached
37+
38+
To upgrade a NIC based LB to IP based LB with virtual machine scale sets (VMSS) in the backend pool, follow the following steps:
39+
1. Configure the upgrade policy of the VMSS to be automatic. Note that if the upgrade policy is not set to automatic, all VMSS instances must be upgraded after calling the migration API.
40+
1. Using the Azure’s migration REST API, upgrade the NIC based LB to an IP based LB. a. Note, if a manual upgrade policy is in place, upgrade all VMs in the VMSS before step 3.
41+
1. Remove the reference of the load balancer from the network profile of the VMSS, and update the VM instances to reflect the changes.
42+
43+
A full example using the CLI is shown here: Az rest –m post –u “https://management.azure.com/subscriptions/MySubscriptionId/resourceGroups/MyResourceGroup/providers/Microsoft.Network/loadBalancers/MyLB/migrateToIpBased?api-version=2022-01-01”
44+
45+
az vmss update --resource-group MyResourceGroup --name MyVMSS --remove virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0].ipConfigurations[0].loadBalancerBackendAddressPools

0 commit comments

Comments
 (0)