hands-on lab

Utilizing Parameter Files with Azure Bicep Templates

Intermediate
Up to 1h
189
4.4/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

Parameter values can be written directly into a Bicep template or passed through to templates manually during deployment. However, this does not make it easy to deploy templates to different environments where different parameter values are needed. If you need to simultaneously deploy the same resources to your dev environment and production environment, then you will need to easily pass through different names for the same resources. Bicep parameter files make it easy to deploy bicep templates with a set of parameter values dedicated for multiple deployments.

In this lab, you will learn how to create parameter files and deploy your Bicep template to Azure referencing this file.

Learning Objectives

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

  • Understand the benefits of using a parameters file
  • Reference parameter files during deployment

Intended Audience

  • IT professionals interested in Infrastructure-as-Code
  • Cloud Engineers
  • Cloud Architects
  • DevOps Engineers

Prerequisites

Familiarity with the following will be beneficial:

  • Azure Web App concepts
  • Familiarity with the Azure CLI
  • Familiarity with the structure of Azure Bicep Templates is highly recommended

The following labs can be used to fulfill the prerequisites:

Updates

January 30th, 2023 - Updated instructions and screenshots to improve clarity

Environment before

Environment after

About the author

Avatar
Adil Islam, opens in a new tab
Cloud Labs Developer
Students
8,223
Labs
38
Learning paths
1

Adil is a Microsoft Certified Trainer, former Azure Engineer, and loves all things Azure. He is a certified Azure Administrator and Azure DevOps Expert and has worked for some of the biggest MSPs in the world (Cognizant, New Signature, CoreAzure). He loves to combine his two passions: cloud and teaching.

Adil specializes in Azure Infrastructure services and has a curiosity for new, in-preview services from Azure, getting his hands familiar with the content before most of the world does. Outside of work, Adil helps run a growing community of IT professionals looking to break into the cloud and regularly runs workshops and webinars.

Covered topics

Lab steps

Benefits of Using Parameter Files
Logging into Azure using Azure CLI
Creating a Parameter File for an Azure Bicep Template
Deploying a Bicep Template and Parameter File