An open API service indexing awesome lists of open source software.

https://github.com/Azure-Samples/cosmos-db-nosql-dotnet-quickstart

Quickstart application template for Azure Cosmos DB for NoSQL and .NET
https://github.com/Azure-Samples/cosmos-db-nosql-dotnet-quickstart

azd-templates azure azure-dev cosmos-db dotnet

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# Quickstart: Azure Cosmos DB for NoSQL - Azure SDK for .NET

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

## Prerequisites

- [Docker](https://www.docker.com/)
- [Azure Developer CLI](https://aka.ms/azd-install)
- [.NET SDK 9.0](https://dotnet.microsoft.com/download/dotnet/9.0)

## Quickstart

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

```bash
azd auth login
```

1. Initialize this template (`cosmos-db-nosql-dotnet-quickstart`) using `azd init`

```bash
azd init --template cosmos-db-nosql-dotnet-quickstart
```

1. Ensure that **Docker** is running in your environment.

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

```bash
azd up
```

1. Observed the deployed web application

![Screenshot of the deployed web application.](assets/web.png)

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

```dotnetcli
dotnet watch run
```