IaC Watch · Ilia Dubovskii · 27 November 2026

Bicep 0.49 Release Notes: Breaking Changes and How to Upgrade

Bicep 0.49.2 was released on 6 November 2026 and is the first 0.49 release on GitHub. The biggest change is a new --config <path> option on the Bicep CLI, so one command can use a chosen bicepconfig.json instead of the file it would discover. There is one new compile error (BCP386 on some @sealed() types), but the maintainers say it only hits templates that could never deploy with real values. Working templates should compile and deploy as before.

The short version

1. What is new

CLI and module restore

Linting and version constraints

Visualizer (VS Code)

Compiler

2. Breaking changes

The release notes list no breaking changes. Three things can still change a CI result.

1. BCP386 on @sealed() resource-derived types. The release notes say these types "previously compiled to templates that rejected every non-empty value at deployment time." The pull request adds: "Templates that now fail with BCP386 could previously only deploy with {} or null, so no working usage should be affected."

Before (0.48.1 compiled this, the deployment then rejected any non-empty value):

@sealed()
type siteProps = resourceInput<'Microsoft.Web/sites@2024-04-01'>.properties

After (0.49.2 reports BCP386). Remove @sealed() from the resource-derived type. Per the pull request, @sealed() on a user-defined object that only contains a resource-derived property is still allowed:

type siteProps = resourceInput<'Microsoft.Web/sites@2024-04-01'>.properties

Find candidates:

grep -rn -A2 "@sealed()" --include="*.bicep" .

Look at each hit that uses resourceInput< or resourceOutput<, directly, through a type alias, or through an import.

2. New version-constraint linter error. If your files set bicep.version, no-conflicting-version-constraints fails the build when no single Bicep version satisfies the entrypoint and its local modules. Fix the ranges, or set the rule level in bicepconfig.json.

3. New Az PowerShell guidance. The rule use-recent-az-powershell-version now uses 15.0 as its default minimum, per the release notes. Note that the rule's docs page still says it checks for versions below 11.0. Find affected scripts:

grep -rn "azPowerShellVersion" --include="*.bicep" .

No deprecations are listed for this release.

3. How to upgrade

Bicep has no state file. The state is what is deployed in Azure, so the backup is an export of that and a copy of the templates you built with the old version.

  1. Record what you run today and keep the old compiled template for comparison.
az bicep version
az bicep build --file main.bicep --outfile main.0.48.json
  1. Back up the deployed resource group as a template (read-only, no changes in Azure).
az group export --name my-rg > my-rg-backup.json
  1. Install the exact version on your machine and in CI. This changes only your local Bicep CLI.
az bicep install --version v0.49.2
az bicep version
  1. Pin it in bicepconfig.json so a different compiler fails with BCP456 instead of building silently (version requirements). Note that "0.49" means exactly 0.49.0, not any 0.49 patch.
{
  "bicep": {
    "version": ">=0.49.2, <0.50.0"
  }
}
  1. Build, lint and compare. Expect metadata._generator to differ; anything else in the diff is worth reading.
az bicep build --file main.bicep --outfile main.0.49.json
az bicep lint --file main.bicep
diff main.0.48.json main.0.49.json
  1. Run what-if against a non-production resource group and read every Modify, Delete and Create line (read-only).
az deployment group what-if \
  --resource-group my-rg-test \
  --template-file main.bicep
  1. Deploy to non-production, then production. This changes resources in Azure.
az deployment group create \
  --resource-group my-rg-test \
  --template-file main.bicep
  1. Roll back if needed. Reinstall the old CLI, revert the bicep.version pin, and redeploy from the commit you deployed before. The redeploy changes resources in Azure; run what-if first, as in step 6.
az bicep install --version v0.48.1

4. Known problems so far

As of 27 November 2026, no regression has been reported against 0.49.2 in the Bicep issue tracker, and there is no 0.49 patch release yet. Two open issues name 0.49.2 but describe older behaviour, not something this release broke:

5. When the plan wants to change things you did not touch

An upgrade is often the first time in months that someone reads a full what-if. Changes made in the portal, and resources that were never in a template, show up there as unexpected Modify or Delete lines. In incremental mode they are mostly reported, not removed, but a Modify on a property you did not edit usually means drift. Compare the what-if against your diff of the two compiled templates: if the template did not change, the difference came from Azure, not from Bicep.

6. Have it done for you

A new Bicep version only helps the resources that are already in code. Anything created in the portal stays outside it, and an upgrade is where that shows up as drift in what-if.

If you want every resource in code, the Beamreach IaC coverage subscription brings each resource in your agreed accounts under Terraform or OpenTofu and keeps it there. Note that this means Terraform or OpenTofu, not Bicep. Coverage is guaranteed above 97%, measured the same way every month. No coverage, no payment: a month at 97% or below is not billed. It costs $920 per account per month and covers AWS, Azure and Google Cloud. Import and drift fixes arrive as pull requests in your repositories. Get a free coverage measurement.

Prefer to do it yourself? Compass is open source (Apache 2.0). AWS only.

7. Sources

8. FAQ

Is it safe to upgrade to Bicep 0.49.2?

Yes, for most code. It is a minor release with no breaking changes listed in the release notes and no regressions reported as of 27 November 2026. Build every entrypoint and run what-if in a test resource group first, because new linter rules and one stricter check can change your CI result.

What breaks in Bicep 0.49?

Only @sealed() on resource-derived types such as resourceInput<...>.properties, which now fails with BCP386. The maintainers say those templates could only deploy with {} or null before. If you use bicep.version, a new linter rule also fails builds when constraints across files cannot all be met.

What do I need to run Bicep 0.49.2?

No new minimum runtime is documented. To use the new --config option from the Azure CLI, run az bicep run with Azure CLI 2.88.0 or later, because az bicep build does not support --config yet.

How do I roll back from Bicep 0.49.2 to 0.48.1?

Run az bicep install --version v0.48.1, change any bicep.version pin in bicepconfig.json back, and redeploy from the commit you deployed before. Bicep keeps no state file, so there is nothing to migrate back.

How do I use a different bicepconfig.json in Bicep 0.49?

Pass --config <path> to the Bicep CLI, for example bicep build main.bicep --config bicepconfig.prod.json. The file applies to the entrypoint and every local module and using target. It can use extends, and a missing file fails the command.

How do I upgrade Bicep with az bicep upgrade?

az bicep upgrade installs the latest Bicep CLI release, which on 27 November 2026 was v0.49.2. To pin the exact version instead, run az bicep install --version v0.49.2, then confirm with az bicep version. The Azure CLI uses its own Bicep binary, so a standalone bicep on your PATH is upgraded separately.

Last checked: 27 November 2026. Written from the release notes, changelog and upgrade guide, linked below. Test the upgrade on a non-production workspace first.

Related: IaC Watch: all pages · IaC coverage subscription · IaC coverage and drift detection