hands-on lab

Introduction to Azure Bicep Templates

Difficulty: Beginner
Duration: Up to 1 hour
Students: 1,675
Rating: 4.7/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

Other than provisioning infrastructure directly in a cloud portal, or even via some form of CLI, Infrastructure-as-Code presents a method of deploying infrastructure to the cloud declaratively, efficiently, and in an instructional manner. Bicep is an accessible and easier-to-understand templating language for deploying Azure resources than its counterpart, ARM templates. Where ARM templates are written in JSON and can be hard to read and author, the Bicep language has a simpler syntax for both reading and creating templates. However, Bicep templates are still inextricably linked to ARM templates.

In this lab, you will create a basic Bicep template to understand the new templating syntax and how it relates to ARM templates.

Learning Objectives

Upon completion of this lab, you will be able to:

  • Understand the benefits of authoring templates in the Bicep language over JSON-based ARM Templates
  • Understand the basic principles of Infrastructure-as-Code
  • Understand the relationship between Bicep and the Azure Resource Manager
  • Add relevant resources to Bicep templates

Intended Audience

  • Students interested in the customization and automation of resources in Azure
  • Cloud Engineers
  • Cloud Architects
  • DevOps Engineers

Prerequisites

Familiarity with the following will be beneficial, but is not required:

  • Azure Storage Account concepts
  • A basic understanding of JSON
  • Familiarity with the Azure CLI

The following labs can be used to fulfill the prerequisites:

Environment before

Environment after

Covered topics

Lab steps

Understanding What Azure Bicep is
Dissecting the Bicep Template Structure
Logging into Azure using Azure CLI
Adding Resources to an Azure Bicep Template