Bicep — Sustainable coding!

JSON: Is never meant to be human readable!

Project Bicep — Forge Infra to Code!

Concepts to understand at first

Project Bicep — Simplify the coding process

Bicep — For a Cleaner Syntax

Bicep-The Playground

Bicep — Tools

  • The so-called Bicep-CLI, available in both the Standalone and Az-Cli integrated versions. The latter is the one recommended by Microsoft. It allows directly deploying the Bicep file to Azure without even recognizing that an ARM template has been created in the backend.
  • And an optional Visual Studio Code extension to assist in creating, validating, and Linting Bicep code (with an Auto-Complete feature).
Visual Studio Code — Bicep Extension

Bicep tools installed? We’re ready to start authoring the first .bicep files.

Bicep Reverse Engineering

az bicep decompile --file deploy-aks.json

Bicep — In Action

resource logAnalyticsWorkspace ‘Microsoft.OperationalInsights/workspaces@2020-10-01' = {
name: ‘name’
location: resourceGroup().location
properties: {
sku: {
name: ‘Free’
}
}
}
targetScope = 'resourceGroup'
param resourcePrefix string
param resourcePurpose string
resource law 'Microsoft.OperationalInsights/workspaces@2020-10-01'= {
name: '${resourcePrefix}-${resourcePurpose}'
location: resourceGroup().location
properties: {
sku: {
name: 'Free'
}
}
}

Build/Deploy

az group create -n rg-spoke-we-001 -l westeuropeaz deployment group create \
-g rg-spoke-we-001 \
-f main.bicep \
-p resourcePrefix=core \
-p resourcePurpose=backend

Cleanup!

Start small, think big!

Is a Cloud-Native enthusiast with 12 plus years of experience. He’s continuously immersing himself in the latest technology trends & projects.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Optimizing your BigQuery tables using partitioning: Time-unit column-partitioned tables

Kubernetes Chaos Engineering: Get Set Go (part 3)

mStable Community Forum Launch

Learn these top software skills to Future-Proof your career

Camera Plugin for Unity

Shared Steps to Manage Change (and Build for BDD Test Automation)

Azure Resource Manager Templates

How I designed and deployed a scalable microservice architecture with limited resources

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aymen Abdelwahed

Aymen Abdelwahed

Is a Cloud-Native enthusiast with 12 plus years of experience. He’s continuously immersing himself in the latest technology trends & projects.

More from Medium

Using counters in Azure DevOps pipeline to increment assembly version numbers

Scalable Container Based Azure Pipelines Pools with Azure Container Apps

How to Create an Azure DevOps Wiki

Monitoring Azure Functions with Azure Monitor & Application Insights