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.
- Sign in to Oracle Cloud.
- From the navigation menu, select .
- Click Create Compartment.
- In the Create Compartment dialog box, enter a name and description for the compartment.
- Click Create Compartment.
- Enter a Name and an Description.
- Click Create compartment.
Note:
Creating compartments can take upwards of 1-2 minutes.
- Open a terminal.
- Install, configure, and activate the OCI CLI as described in Install Oracle OCI Command Line.
- Determine the tenancy ID by examining the
.oci/configfile. This ID is required for creating a compartment within the root tenant.cat .oci/config [CONFIG] . . . tenancy=ocid1.tenancy.oc1... . . . - 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...
Note:
Creating compartments can take upwards of 1-2 minutes.
Related resources
Next steps