Create 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 Identity > Compartments.
  3. Click Create Compartment.
  4. In the Create Compartment dialog box, enter a name and description for the compartment.
  5. Click Create Compartment.
  1. Open a terminal.
  2. Install, configure, and activate the OCI CLI as described in Install Oracle Cloud Infrastructure Command Line Interface (OCI-CLI).
  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:
    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...