Site icon ORACLEAGENT BLOG

How to Create a Compartment in Oracle Cloud Infrastructure (OCI)

What is a compartment in OCI ?

A compartment is a collection of related resources (such as cloud networks, compute instances, or block volumes) that can be accessed only by those groups that have been given permission by an administrator in your organization.

Steps to create compartment in OCI :

  1. Go to the Navigation menu.
  2. Under Governance and Administration, select Identity, then Compartments.A list of the compartments in your tenancy is displayed.
  3. Select the compartment in which you want to create your instance or create a new compartment.
    To create a new compartment:

    1. Click Create Compartment to create the compartment to use for creating an instance.
    2. Enter the following:
      • Name: Enter a name that is unique across all compartments in your tenancy (maximum 100 characters, including letters, numbers, periods, hyphens, and underscores). For example, enter a name such as OICCompartment.
      • Description: Enter a description for this compartment.
      • Tags: Enter tags to organize and list resources based on your business needs.
    3. Click Create Compartment.
      Return to the navigation pane.

Login to Oracle Cloud Infrastructure to create compartment. Select Compartment Menu by Clicking  on Navigation pane, hover over Identity option and click on Compartments.

Click on the Create Compartment button. Once inside Compartments menu, you can see Create Compartment button at top. Click on it to create new compartment.

Fill in the compartment details (Enter the compartment name and description. If you want to make it a child of an existing compartment, select the relevant parent compartment, otherwise accept the default root container) and click on Create Compartment button at left bottom of the screen.

Once you should be able to see your newly created compartment in the list of compartments. when you click in create compartment button.

We can see root compartment contains one sub compartment as we named as Galaxy.By clicking the compartment we get details of compartment like OCID.

If we need to create a instance under the compartment which we created we need to select compartment as I highlighted in left corner. Then we need to create instance by clicking create instance button.

In this document we saw about how we can create compartment.

Thank you for giving your valuable time to read the above information.
If you want to be updated with all our articles send us the Invitation or Follow us:
Ramkumar’s LinkedIn: https://www.linkedin.com/in/ramkumardba/
LinkedIn Group: https://www.linkedin.com/in/ramkumar-m-0061a0204/
Facebook Page: https://www.facebook.com/Oracleagent-344577549964301
Ramkumar’s Twitter : https://twitter.com/ramkuma02877110
Ramkumar’s Telegram: https://t.me/oracleageant
Ramkumar’s Facebook: https://www.facebook.com/ramkumarram8

Exit mobile version