Moving a Load Balancer to a Different Compartment

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

    1. On the Load balancers list page, select 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. To view the load balancers in a different compartment, use the Compartment filter to switch compartments.

      You must have permission to work in a compartment to see the resources in it. If you're not sure which compartment to use, contact an administrator. For more information, see Understanding Compartments.

    3. From the Actions menu for the load balancer, select Move resource.
    4. In the Move resource panel, select the destination compartment from the list.
    5. Select Move resource.
  • Use the oci lb load-balancer change-compartment command and required parameters to move a load balancer to a different compartment:

    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 to a different compartment.