There are lots of wrong and right articles in internet, when you try to execute Hands-on Labs by yourself, there is chance that you could get drifted away or get severely confused, We strictly adhere to Official Oracle Cloud Documentation, offering you reliable and precise information without personal interpretations. This means you can trust our content 100% Genuine.
Prerequisites

Before you Start the Lab kindly ensure you have the following:
- An active OCI account.
- and your Account user has, necessary IAM policies to create and manage networking components and Resources.
Lab Task :
In this Lab using (OCI) web console, we will try Move Subnets and VCN to diffrent Compartment in (OCI).
Lab Task Flow
- Guided Hand-on Lab - Creating VCN & Subnets and How to Choose correct IPv4 CIDR ip. or
- Guided Hand-on Lab - Creating VCN & 2 Subnets (Private/Public) with Wizard and How to Choose IPv4 CIDR ip.
Task 1: Creating VCN and Subnets
To proceed with this Lab, we need to have a VCN and Subnets first, we assume that you already have an compartment, else kindly create your Compartment by following below Guided Hand-on Lab Link and finish this Task of Creating a VCN or Subnet.
Task 2: Moving a Subnet Between Compartments
Moving of a Subnet to different Compartment can be done with simple steps.
Task 3: Moving a VCN Between Compartments
Moving of a VCN to different Compartment can be done with simple steps.
Detailed Video Explanation:
Required concept knowledge
Moving VCN and Subnet how will they affect the OCI project Architecture?
Moving a Virtual Cloud Network (VCN) to a different compartment in Oracle Cloud Infrastructure (OCI) is a seamless process that does not disrupt the relationships between the VCN and its associated resources, such as subnets, VNICs, and IP addresses.
Compartments in OCI are logical constructs used for organizing and managing resources, and they do not impact the operational functionality of the resources themselves.
When a VCN is moved to a new compartment, all its associated resources, including subnets, move with it, ensuring that the network configuration and connectivity remain intact. This flexibility allows administrators to reorganize their cloud resources without any downtime or reconfiguration, making it easier to manage and maintain a well-structured cloud environment1.
The ability to move VCNs and their associated resources between compartments without affecting their functionality is particularly beneficial for large organizations that need to adapt their cloud infrastructure to changing business needs. For instance, as projects evolve or departments are restructured, resources can be reallocated to different compartments to reflect the new organizational structure.
This feature supports efficient resource management and enhances security by allowing administrators to apply compartment-specific policies and access controls. Overall, the logical separation provided by compartments, combined with the ease of moving resources, contributes to a more flexible and manageable cloud infrastructure.
Reference
Stay tuned for more posts on managing your OCI resources effectively! Happy cloud computing!