Create a compartment

Compartments are used for grouping similar resources together. While it's optional, we recommend that you create a compartment for Access Gateway OVA.

  1. Sign in to Oracle Cloud.
  2. From the navigation menu, select IdentityCompartments.
  3. Click Create Compartment.
  4. In the Create Compartment dialog box, enter a name and description for the compartment.
  5. Click Create Compartment.
  6. Enter a Name and an Description.
  7. Click Create compartment.

Creating compartments can take upwards of 1-2 minutes.

  1. Open a terminal.
  2. Install, configure, and activate the OCI CLI as described in Install Oracle Cloud Infrastructure Command Line Interface.
  3. Determine the tenancy ID by examining the .oci/config file. This ID is required for creating a compartment within the root tenant.
    cat .oci/config
    [CONFIG] . . .
    tenancy=ocid1.tenancy.oc1... . . .
  4. Create a tenancy ID create a compartment using a command similar to:
    Copy

    Create compartment example


    oci iam compartment create \
    --name "<compartment name>" \
    --description "<Compartment description>" \
    --compartment-id <compartment-id-from-config>

    For example:
    oci iam compartment create \ --name "OAG"\ --description "My OAG Compartment"\ --compartment-id ocid1.tenancy.oc1...

Creating compartments can take upwards of 1-2 minutes.

Related resources

Create Compartment