Creating an Application
Applications define managed runtime settings for hosted deployments, including scaling, managed storage, networking, and authentication. This task explains how to create an application by using the Oracle Cloud Console in the OCI Generative AI service.
On the Applications list page, select Create application. If you need help finding the list page, see Listing Applications.
Basic Information
Tags
- (Optional) Select Add tag and assign tags to this application. See Resource Tags.
- Select Create.
Scaling
Storage (Optional)
If deployments in the application need service-managed storage, you can enable OCI PostgreSQL, OCI Cache, or Oracle Autonomous AI Database.
Enable managed storage for hosted deployments associated with this application. Managed storage is created and managed by the service and is accessible only from the hosted deployment associated with this application. Connection details are provided to the container through environment variables.
- OCI PostgreSQL
Enable OCI PostgreSQL to provide a managed database for deployments in this application.
For this option:- Enter the environment variable name that receives the OCI PostgreSQL connection URI. The service adds the connection string to the specified environment variable.
- Storage: Select whether to create storage or use existing storage. If you select existing storage, the application shares the OCI PostgreSQL storage resource with other applications in the tenancy. Each application is assigned a dedicated database, and this application has permission to access only its dedicated database.
- OCI CacheEnable OCI Cache to provide a managed cache for deployments in this application. For this option:
- Enter the environment variable name that receives the OCI Cache connection URI.
- Storage: Select whether to create storage or use existing storage.
- Oracle Autonomous DatabaseEnable Oracle Autonomous AI Database to provide a managed database for deployments in this application. For this option:
- Enter the environment variable name that receives the Autonomous AI Database connection URI.
In addition to the connection string, the service mounts the database user credentials to the following local files in the container:/mnt/secrets/adb/username /mnt/secrets/adb/password
Environment
Networking (Optional)
Select how deployments in this application route outbound traffic, and how clients access the deployment endpoint.
Authentication
Select one of the following authentication methods:
- Identity domain bearer token: Uses an OAuth 2.0 access token issued by an OCI IAM identity domain. The token is sent to the target service as a bearer token, and the service validates the token before accepting the request. As a prerequisite, perform the tasks in Setting up Authentication for Agentic Support.
- OCI IAM: Uses OCI IAM request-signature authentication. Each request is cryptographically signed according to OCI API request-signing requirements.
When using the API, use the CreateHostedApplication API for identity domain bearer token authentication with an InboundAuthConfig. To create an application that uses OCI IAM authentication, use the CreateHostedApplicationIam API with CreateHostedApplicationIamDetails. The OCI IAM API doesn't require an OAuth or IDCS configuration.
For Identity domain bearer token, perform the following steps:
Identity domain bearer token
- For Authentication type, select Identity domain bearer token.
-
Select one of these options:
- Select an existing identity domain
Use the same identity domain in which you created the confidential integrated application in Step 2. Create an Application in the Identity Domain.
- Identity domain compartment
- Identity domain
- Paste an identity domain URL
Example:
https://idcs-xxx.identity.oraclecloud.com:443
- Select an existing identity domain
-
For the identity domain, enter values for the following parameters:
- Scope
Specifies the actions that the access token is permitted to perform. Examples:
user.read,email. - Audience
Specifies the service or API that the access token is intended for. The target resource server accepts the token only when the audience claim matches that server.
To find this value, open the identity domain Console and select the integrated application you created in Step 2. Create an Application in the Identity Domain. Select OAuth configuration, copy Primary audience, and paste it here.
Examples:https://api.example.comhttps://my-service.internalurn:my-resource-serverocid1.resourceServer.oc1..xxxx
- Scope
Enable Application Logs
Enable resource logging to track application activity, troubleshoot issues, and collect operational insights for hosted deployments.
Review and Create
Review the application settings, then select Create application.
Application creation time depends on the resources that the service provisions for the application.
-
If managed storage is enabled, the service provisions a dedicated storage instance, which might take several minutes.
-
If custom networking is selected, the service provisions the required network bridging resources, which might also take several minutes.
After you create an application, you can view its details and perform other tasks, such as moving it to a different compartment, managing its tags, or deleting it. Use the in the Console to access these tasks. You can also create a deployment for the application from its detail page. For more information, see Listing Applications.