To access the Cosmos DB, the SharePoint Online app service needs to be configured with the application settings outlined in this article.
Add the application settings
Navigate to the Configuration blade for the app service.
Add the application settings specified in the below table.
Name | Value |
---|---|
CosmosDbAuthKey | Primary key of the Cosmos DB |
CosmosDbContainerID | Name of the Cosmos DB container |
CosmosDbCosmosDbEndpoint | URI for the Cosmos DB |
CosmosDbDatabaseId | Name of the Cosmos DB |
WEBSITE_HTTPLOGGING_RETENTION_DAYS | 7 |
WEBSITE_LOAD_USER_PROFILE | 1 |