The short version
- Released: Bicep v0.49.2, 6 November 2026 (release notes). The previous release was v0.48.1.
- Breaking changes: no intentional ones. One stricter check (BCP386 on
@sealed()) and new linter diagnostics can make a build that passed on 0.48.1 report errors or warnings. - Requires: no new minimum runtime is documented. To pass
--configthrough the Azure CLI you needaz bicep run(Azure CLI 2.88.0 or later) with Bicep CLI v0.49 or later (docs). - Upgrade now or wait: upgrade now. It is a minor release with no regressions reported against it in the three weeks since it shipped.
- Do now: build every entrypoint with 0.49.2 in CI and read the new linter output before you change the pinned version.
1. What is new
CLI and module restore
--config <path>onbuild,lint,format,publish,restore,what-if,deployand other commands (#20412, REP 0029). You can keep a stricter linter config for CI without moving files around. The release notes say "A missing file fails the command rather than falling back to discovery."bicep restore --forcenow retries modules that failed recently (#20472). A flaky registry no longer leaves a stale failure in place.
Linting and version constraints
- Two new rules for
bicep.versionconstraints across an entrypoint and its local modules (#20337):no-conflicting-version-constraints(error by default) andno-incompatible-entrypoint-version(warning by default). They only fire if you usebicep.versioninbicepconfig.json. - The deployment script rule now recommends Az PowerShell 15.0 as the minimum, and the snippet uses 16.2 (#20396). Deployment scripts on older Az versions will get a new diagnostic.
Visualizer (VS Code)
- Optional theme matching with
bicep.visualizer.matchColorTheme, collapsible modules, and expanding registry modules published with source. Editor-only, no effect on compiled templates.
Compiler
@sealed()is now blocked on resource-derived types reached through expressions, aliases and imports (#20389). See Breaking changes.- The WebAssembly decompilation API returns all generated files, not just the entrypoint (#20387).
- Azure Deployments packages updated to 1.812.0 (#20444).
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.
- 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
- 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
- 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
- Pin it in
bicepconfig.jsonso 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"
}
}
- Build, lint and compare. Expect
metadata._generatorto 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
- 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
- Deploy to non-production, then production. This changes resources in Azure.
az deployment group create \
--resource-group my-rg-test \
--template-file main.bicep
- Roll back if needed. Reinstall the old CLI, revert the
bicep.versionpin, 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:
- #20546:
existingandthis.existingResource()read with a GET, so write-only values such as app settings come back empty. Merging them withunion()can remove existing settings. The issue shows a workaround usinglist(). - #20556: the deployment validation level option applies only to the main deployment, not to nested module deployments.
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
- Bicep v0.49.2 release notes
- Bicep releases list
- PR #20412: --config option
- REP 0029: CLI config option
- PR #20337: version-constraint linter rules
- PR #20389: block @sealed() on resource-derived types
- PR #20396: Az PowerShell guidance
- Install Bicep tools
- Bicep CLI commands
- Configure your Bicep environment
- Configure Bicep compiler version requirements
- Linter rule: no-conflicting-version-constraints
- Linter rule: use-recent-az-powershell-version
- Bicep what-if
- az group export
- Issue #20546 and issue #20556
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
Beamreach