This sample app is a .NET Core console app that uses the CosmosDB .NET Core SDK to connect to a CosmosDB instance running in a Linux Docker container. The sample creates random documents in the database.
Docker Compose is required to run this sample. You can download Docker Compose from here.
- Clone the repo
cd dotnet/linux
touch .env
and add the following environment variable. See.env.example
for an example. If you're using Emulator, you can copy the key from the Emulator's Data Explorer.COSMOSDB_KEY=<your cosmosdb key>
docker compose up