Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.45 KB

File metadata and controls

59 lines (42 loc) · 1.45 KB

Quickstart: Azure Cosmos DB for MongoDB - Java

This is a simple Spring web application to illustrate common basic usage of Azure Cosmos DB for MongoDB with Java.

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-java-quickstart) using azd init

    azd init --template cosmos-db-mongodb-java-quickstart
  3. (Optional) Select either vcore or request-unit account type using azd env set.

    azd env set "MONGODB_DEPLOYMENT_TYPE" "vcore"
    azd env set "MONGODB_DEPLOYMENT_TYPE" "request-unit"
  4. Ensure that Docker is running in your environment.

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

    azd up
  6. Observed the deployed web application

    Screenshot of the deployed web application.