Create a CosmosDB container with id as partition key.
-
Set the connection string:
dotnet user-secrets set ConnectionStrings:CosmosDb "AccountEndpoint=foo;AccountKey=bar;"
-
Configure appsettings.json or set the environment variables
CosmosDb:DatabaseIdandCosmosDb:ContainerId
dotnet run