Moving a Load Balancer Between Compartments

Move a load balancer to a different compartment in your Oracle Cloud Infrastructure tenancy.

See Managing Compartments for information about compartments and access control.

    1. On the Load balancers list page, find the load balancer that you want to work with. If you need help finding the list page or the load balancer, see Listing Load Balancers.
    2. From the Actions menu for the load balancer, select Move resource.
    3. In the Move resource panel, select the destination compartment from the list.
    4. Select Move resource.
    The load balancer now resides in the updated compartment.
  • Use the oci lb load-balancer change-compartment command and required parameters to move a load balancer between compartments:

    oci lb load-balancer change-compartment --compartment-id compartment_id [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the ChangeLoadBalancerCompartment operation to move a load balancer between compartments.