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.
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.
Once deployed, the resources will be available in Azure, and ready to consume over HTTP.
Install project dependencies using Yarn
yarn
You will need to install the Azure CLI, and dependencies of Azure Bicep.
To deploy the infrastucture to Azure.
./deploy.sh
To deploy the Azure Functions code, run
./release.sh