Skip to content

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

Notifications You must be signed in to change notification settings

js-kyle/bicep-flex

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published