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.

Add the application settings

  1. Navigate to the Configuration blade for the app service.

  2. Add the application settings specified in the below table.

Name

Value

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

Download the publish profile file

  1. Navigate to the Overview blade for the App Service.

  2. Download the publish profile file.




Next Steps

Add secret to key vault in EmpowerID Tenant

Publish the SharePoint Online Microservice to Azure