Moving a Load Balancer Between Compartments

Describes how to move a load balancer between compartments.

See Managing Compartments for information about compartments and access control.

    1. Open the navigation menu, click Networking, and then click Load Balancers.

    2. Select the Compartment from the list.

      All load balancers and network load balancers in that compartment are listed in tabular form.

    3. (optional) Select a State from the list to limit the load balancers displayed to that state.

    4. (optional) Uncheck Network Load Balancer under Type to only display load balancers.

    5. Click the Actions icon (Actions icon) associated with the load balancer you want to move, then click Move Resource.

      The Move Resource dialog box appears.

    6. Choose the destination compartment from the list.

    7. Click Move Resource.

  • 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 flags and variable options for CLI commands, see the Command Line Reference.

  • Run the ChangeLoadBalancerCompartment operation to change the compartment of a load balancer.