Skip to content

A secure Web reference application using AKS with Managed Identity, Key Vault, and Cosmos DB that is designed to be deploy

License

Notifications You must be signed in to change notification settings

Azure-Samples/cosmos-aks-samples

Repository files navigation

Cosmos DB sample ToDo App on AKS Cluster

A Web reference ASP.NET Core MVC application that demonstrates how to use the Microsoft Azure Cosmos DB service to store and access data. The application is designed to be deployed on Azure Kubernetes Services(AKS) using Bicep, Terraform, and Azure Service Operators(ASO)

Prerequisites

Before you can run this sample, you must have the following prerequisites:

Overview

This sample shows you how to use the Microsoft Azure Cosmos DB service to store and access data from an ASP.NET Core MVC application. This application uses Managed Identity and Cosmos RBAC. The application is published as a docker container and can be hosted on Azure Kubernetes Services (AKS).

This sample can be deployed using the following three methods:

  • Bicep template: This sample uses Bicep template to deploy the AKS and other infrastructure resources (Resource Groups, VNet, Managed Identity, Key Vault, Azure Container Registry), and a Cosmos DB SQL account. It then deploys the the sample application on AKS using the Kubernetes command-line client, kubectl. This example uses Key Vault to store the application secrets.
  • ASO deployment: This sample uses Bicep template only for deploying the the AKS infrastructure resources (Resource Groups, VNet, Managed Identity, ACR). It uses the Kubernetes command-line client, kubectl and Azure Service Operator (ASO) to deploy the Cosmos DB SQL account and host the sample application on AKS. This example doesn’t use Key Vault.
  • Terraform template: This sample uses Terraform to deploy the AKS and other infrastructure resources (Resource Groups, VNet, Managed Identity, Key Vault, Azure Container Registry), and a Cosmos DB SQL account. It then deploys the the sample application on AKS using the Kubernetes command-line client, kubectl. This example uses Key Vault to store the application secrets.

Running the sample

To run this sample, follow the instructions in the ASO, Bicep or Terraform folder. The steps provided will deploy the Azure resources and Cosmos DB account. It will also host the sample ToDo application on AKS.

About

A secure Web reference application using AKS with Managed Identity, Key Vault, and Cosmos DB that is designed to be deploy

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published