Test your Bicep code by using GitHub Actions

Intermediate
DevOps Engineer
Developer
Administrator
Azure Resource Manager
GitHub

Validate and test your Bicep code in your deployment workflow. You'll use linting, preflight validation, and the what-if operation to validate your Azure changes before you deploy, and you'll test your resources after each deployment.

Learning objectives

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

  • Add Bicep code linting during continuous integration.
  • Add preflight deployment validation during build or release jobs.
  • Add what-if checks, including manual approval steps.
  • Verify the configuration of the deployed environment.

Prerequisites

You should be familiar with using:

  • Bicep, including creating and deploying basic files
  • Azure, including the Azure portal, subscriptions, resource groups, and resources
  • Basic Git commands, including cloning, committing files, and pushing changes to GitHub
  • Basic GitHub Actions workflows, including secrets so your workflow can connect to your Azure environment

To work through the exercises in the module, you'll need:

  • An Azure account, with the ability to create resource groups and Microsoft Entra applications
  • A GitHub account

You'll also need the following software installed locally: