Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/azure-samples/cosmos-db-table-python-quickstart

Quickstart application template for Azure Cosmos DB for Table and Python
https://github.com/azure-samples/cosmos-db-table-python-quickstart

azd-templates azure azure-dev cosmos-db python

Last synced: 22 days ago
JSON representation

Quickstart application template for Azure Cosmos DB for Table and Python

Awesome Lists containing this project

README

        

# Quickstart: Azure Cosmos DB for Table - Azure SDK for Python

This is a simple Flask web application to illustrate common basic usage of Azure Cosmos DB for Table with the Azure SDK for Python.

## Prerequisites

- [Docker](https://www.docker.com/)
- [Azure Developer CLI](https://aka.ms/azd-install)
- [Python 3.12](https://www.python.org/downloads/)

## 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-table-python-quickstart`) using `azd init`

```bash
azd init --template cosmos-db-table-python-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)