Giter VIP home page Giter VIP logo

bicep-azure's Introduction

Infrastructure as Code (IaC) with Bicep

Deploy and manage your Azure infrastructures with Azure native IaC framework Bicep.


What's Bicep?

Bicep is a domain-specific language and an Azure-native IaC framework for deploying and managing Azure infrastructures in automation way, rathar than manually on Azure Portal. Unlike ARM JSON template, Bicep use it's own domain-specific language for provisioning Azure resources which makes a template very simple and human-readable.


Benfits of Bicep

  • Simpler syntax for writing templates
  • Reference parameters and variables directly, without using complicated functions
  • Break down complex template deployments into smaller module files and reference them in a main template
  • You can directly deploy newly released or in preview Azure resources

... and much more.

Bicep template vs. ARM JSON template

Behind the scenes, Bicep still operates with ARM JSON templates. When you submit a Bicep template to Resource Manager, the template going to be converted in JSON template. This propcess is called transpilation. But typically the template author doesn't come in touch with this process unless he wants to see the JSON template.

Image_01: Bicep to JSON Image_02: Bicep template vs ARM JSON template


Pre-requisites

Download VS Code

Download from the VS Code homepage

Install Azure CLI

Download and install Azure CLI. After that check your installation:

az version

Log in to your Azure account:

az login

List the available subscriptions in your directory:

az account list -o table

Choose the right subscription:

az account set --subscription "<your-subscription-id>"

Download Bicep

Install Bicep extension in VS Code or type the folowing command in VS Code terminal:

az bicep install && az bicep upgrade

Quick Start

Set the defaults resource group for the deployment:

az configure --defaults group=<resource-group-name>

Deploy the resources:

az deployment group create --template-file main.bicep

Reference

Bicep Docs

bicep-azure's People

Contributors

memal7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.