/cosmos-db-mongodb-dotnet-quickstart

Quickstart application template for Azure Cosmos DB for MongoDB and .NET

Primary LanguageBicepMIT LicenseMIT

Quickstart: Azure Cosmos DB for MongoDB - Azure SDK for .NET

This is a simple Blazor web application to illustrate common basic usage of Azure Cosmos DB for MongoDB with the Azure SDK for .NET

Prerequisites

Quickstart

  1. Log in to Azure Developer CLI. This is only required once per-install.

    azd auth login
  2. Initialize this template (cosmos-db-mongodb-dotnet-quickstart) using azd init.

    azd init --template cosmos-db-mongodb-dotnet-quickstart
  3. Ensure that Docker is running in your environment.

  4. Use azd up to provision your Azure infrastructure and deploy the web application to Azure.

    azd up
  5. Observed the deployed web application

    Screenshot of the deployed web application.

  6. (Optionally) Run this web application locally in the src/web folder:

    dotnet watch run