QnA Maker Bot with CosmosDB for storage

devX 1 Reputation point
2020-10-20T20:42:32.89+00:00

Within the Microsoft Learn, it states I should not create a CosmosDB container, however the next section requires that I populate a container-id.

"CosmosDbEndpoint": "<your-cosmosdb-uri>",  
"CosmosDbAuthKey": "<your-authorization-key>",  
"CosmosDbDatabaseId": "<your-database-id>",  
"CosmosDbContainerId": "<**your-container-id**>"  


            CosmosDbEndpoint = Configuration.GetValue<string>("CosmosDbEndpoint"),  
            AuthKey = Configuration.GetValue<string>("CosmosDbAuthKey"),  
            DatabaseId = Configuration.GetValue<string>("CosmosDbDatabaseId"),  
            ContainerId = Configuration.GetValue<string>("**CosmosDbContainerId**"),  

https://video2.skills-academy.com/en-us/azure/bot-service/bot-builder-howto-v4-storage?view=azure-bot-service-4.0&tabs=csharp#add-cosmos-db-configuration-information

When i don't create a container, nothing happens on the CosmosDB.

Now If i create a container within CosmosDB, I can add the name, however then the question then is what should the partition key be/what options are there?
33851-image.png

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,632 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,833 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.