js-kyle / bicep-flex

This is an example project which deploys infrastucture using Azure Bicep.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bicep Flex 💪

This is an example project which deploys infrastucture using Azure Bicep.

This is a simple starter project which will deploy the following resources to Azure:

  • Azure API Gateway (Consumption tier)

    This publishes the API to the internet and upholds the API contract defined in bicep-flex/orders-openapi.yaml.

  • Azure CosmosDB (MongoDB API)

    This is a minimal SKU Cosmos which is used to demonstrate functionality within the Orders API

  • Azure Function (Consumption tier)

    A basic JavaScript Azure Function which connects to the Azure CosmosDB data source for CRUD operations

  • Azure Blob Storage

    A blob storage account, required as a dependency of Azure Functions.

Azure Bicep

As the focus of this repository is to demonstrate Azure Bicep, the Infrastructure as code templates can be reviewed in infrastucture directory. The below images demonstrates the Bicep modules structure which has been defined.

Infrastructure diagram

Once deployed, the resources will be available in Azure, and ready to consume over HTTP.

Infrastructure diagram

Installation

Install project dependencies using Yarn

yarn

Prerequisites

You will need to install the Azure CLI, and dependencies of Azure Bicep.

Deploying

To deploy the infrastucture to Azure.

./deploy.sh

To deploy the Azure Functions code, run

./release.sh

About

This is an example project which deploys infrastucture using Azure Bicep.


Languages

Language:Bicep 72.2%Language:JavaScript 22.1%Language:Shell 5.6%