Build flexible Bicep templates by using conditions and loops

DevOps Engineer
Azure Resource Manager

In this module, you'll deploy resources only when specific constraints are in place and use loops to deploy multiple resources that have similar properties.

Learning objectives

After completing this module, you'll be able to:

  • Deploy resources conditionally within a Bicep template.
  • Deploy multiple instances of resources by using loops.
  • Use output and variable loops.


You should be familiar with:

  • Creating and deploying basic Bicep templates, including modules.
  • Azure, including the Azure portal, subscriptions, resource groups, and resource definitions.

To follow along with the exercises in the module, you'll need: