Obtaining connection values for Microsoft Azure Cosmos DB
About this task
This topic provides instructions for obtaining the connection values for the Microsoft Azure Cosmos DB connector.
Tip: For detailed information about obtaining the connection values, see Get Azure Cosmos DB credentials on the Microsoft Azure Cosmos DB
documentation page.
Procedure
- Log in to the Microsoft Azure portal.
- To obtain the client ID and client secret values
(BASIC), complete the following steps:
- Click App registrations.
- In the
App registrations
page, click New registration. - In the
Register an application
page, specify a unique name for your app. - Select an option in the Supported account types section according to your requirements.
- Click Register.
The Overview page for the application is displayed.

- Make a note of the Application (client) ID value because you need to specify it as a connection value when creating the account in App Connect.
- For the Client credentials field on the Overview
page, click Add a certificate or secret. This action opens the
Certificates & secrets
page.
- Click + New client secret.
- In the
Add a client secret
panel, specify a description for the secret (for example, App Connect secret) and then select an expiry period. - Click Add.
The generated client secret is displayed on the
Certificates & secrets
page.
- Copy and store the client secret value. You need to specify this value as a connection value
when you create the account in App Connect.Note: The client secret value is not shown again in full after you leave this page.
- To find the tenant ID value (BASIC), complete the
following steps:
- Go to the Microsoft Azure portal login page, and then go to Microsoft Entra ID > Properties.
- Copy the Tenant ID value and save it somewhere safe.

For more information about obtaining the Tenant ID, see How to find your Microsoft Entra tenant ID in the Microsoft Entra documentation.
- To create a new account (BASIC) in Microsoft Azure Cosmos DB, complete the following steps:
- Click Azure Cosmos DB from the list of Azure Services.
- Click + Create to create a new Azure Cosmos DB account.
The Create an Azure Cosmos DB account page is displayed.
- Click the Create button from the Azure Cosmos DB for NoSQL tile.
- For the Workload Type field, select the required workload type.
- Select a resource group from the menu, or click Create new to create a new resource group.
- Enter the name for your namespace in the Account name field.
- For the Location field, choose the region to host your account.
- Click Review + create.
- Review your settings, and then click Create.Tip: For detailed information about creating an account, see Create an account in the Azure Cosmos DB documentation.
- To create a new container (BASIC) in your Microsoft Azure Cosmos DB account, complete the following steps:
- Click Azure Cosmos DB from the list of Azure Services.
- Select the account that you created in step 4.
- Click Data Explorer on the sidebar.
- Click + New Container.
The New Container dialog is displayed.
- Enter the Database id, Container id, and Partition key as required.
- Click OK.
-
Tip: For detailed information about creating a container, see Create a database and container in the Azure Cosmos DB documentation.
- To grant your application access to your Microsoft Azure Cosmos DB account using Azure role-based access control (RBAC), assign the owner or contributor role to the
application (BASIC).
- Click Azure Cosmos DB from the list of Azure Services.
- Select the account that you created in step 4.
- Click Access control (IAM) on the sidebar.
- Click + Add > Add role
assignment.
The Add role assignment page is displayed.
- In the Role tab, click Privileged administrator roles and select owner or contributor.
- In the Members tab, click + Select members.
- Select the application that you created in step 2 and click Select.
- Review your settings, and click the Review + assign button.
- To obtain the server URL (API KEY and
BASIC), complete the following steps:
- Click Azure Cosmos DB from the list of Azure services to log in to your Microsoft Azure Cosmos DB account.
- Under the
Security + networking
section of your Microsoft Azure Cosmos DB account, click Keys. - Copy the value from the URI field (the URI value is your App Connect Server URL).
- To obtain the key value (API KEY), complete the following
steps:
- Click Azure Cosmos DB from the list of Azure services to log in to your Microsoft Azure Cosmos DB account.
- Under the
Security + networking
section of your Microsoft Azure Cosmos DB account, click Keys. - Copy the value of the PRIMARY KEY or SECONDARY KEY
(either Read-write or Read-only based on your requirement) and save it somewhere safe.Note: You can provide the value of either the PRIMARY KEY or SECONDARY KEY in App Connect.