Quickstart: Azure Cosmos DB for MongoDB and Python
This is a simple Express web application to illustrate common basic usage of Azure Cosmos DB for MongoDB with Python.
Prerequisites
Quickstart
Log in to Azure Developer CLI. This is only required once per-install.
azd auth loginInitialize this template (
cosmos-db-mongodb-python-quickstart) usingazd init.azd init --template cosmos-db-mongodb-python-quickstart(Optional) Select either
vcoreorrequest-unitaccount type usingazd env set.azd env set "MONGODB_DEPLOYMENT_TYPE" "vcore"azd env set "MONGODB_DEPLOYMENT_TYPE" "request-unit"Ensure that Docker is running in your environment.
Use
azd upto provision your Azure infrastructure and deploy the web application to Azure.azd upObserved the deployed web application
