Utilizing Parameter Files with Azure Bicep Templates

Lab Steps

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

The hands-on lab is part of this learning path

Ready for the real environment experience?

DifficultyIntermediate
Time Limit1h
Students30
Ratings
3.6/5
starstarstarstar-halfstar-border

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:

Environment before
PREVIEW
arrow_forward
Environment after
PREVIEW
About the Author
Students133
Labs8
Learning paths1

Adil is a Microsoft Certified Trainer, former Azure Engineer, and loves all things Azure. He's a Certified Azure Administrator 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. Adil has a keen interest in deploying services to Azure using Infrastructure-as-code and Azure DevOps. Outside work, Adil helps run a growing community of IT professionals looking to break into cloud and regularly runs workshops and webinars.