[Yandex Cloud documentation](../../../../index.md) > [Yandex Application Load Balancer](../../../index.md) > [Tutorials](../../index.md) > [Migrating services from NLB to L7 ALB for enabling Smart Web Security protection](../index.md) > NLB with an instance group as a target > Overview

# Migrating services from an NLB with an instance group as a target to an L7 ALB

# Migrating services from an NLB with an instance group as a target to an L7 ALB


You can migrate the load from a [Yandex Network Load Balancer](../../../../network-load-balancer/index.md) load balancer to a [Yandex Application Load Balancer](../../../index.md) L7 load balancer. The network load balancer is integrated with a VM group. This instance group tracks the number of VMs in the group and changes the composition of the load balancer's target group as needed. An instance group can be integrated with only one of the balancers: either a network load balancer or an L7 load balancer. Therefore, to migrate you need to change the target group integration for the instance group by replacing the network load balancer's target group with the L7 load balancer's target group.

During the migration process, the L7 load balancer will have a [Yandex Smart Web Security](../../../../smartwebsecurity/index.md) security profile connected to it. An L7 load balancer with a connected security profile operates as follows:

![image](../../../../_assets/tutorials/security/nlb-with-target-resource-group-vm.svg)

You can create a service migration infrastructure using the following tools:

* [Management console](console.md): Use the Yandex Cloud management console to create your infrastructure step by step.
* [Terraform](terraform.md): Streamline creating and managing your resources with the _infrastructure as code_ (IaC) approach. Download a Terraform configuration example and deploy your infrastructure using the [Yandex Cloud Terraform provider](../../../../terraform/index.md).