Add Application Settings to the App Service
To access the Cosmos DB, the SharePoint Online app service needs to be configured with the application settings outlined in this article. Once you have completed this, you download the publish profile file. This file is used when publishing the SharePoint Online microservice to Azure.
Procedure
Step 1 - 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 UpdateUserProfileProperties Function URL for the master key
Step 2 - Download the publish profile file
- Navigate to the Overview blade for the App Service.
- Download the publish profile file.