Skip to content

Instantly share code, notes, and snippets.

@dstarr dstarr/Program.cs
Created Mar 6, 2018

What would you like to do?
Provision Azure Cosmos DB if needed
private async Task ProvisionDbIfNeeded()
await client.CreateDatabaseIfNotExistsAsync(new Database { Id = dbName });
await client.CreateDocumentCollectionIfNotExistsAsync(
new DocumentCollection { Id = collectionName }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.