Home / Azure

Tool | AVM Updater

Tool | AVM Updater


Reading Time: 4 minutes

Azure Verified Modules are one of the best things to happen to Bicep and Terraform in a long time: tested, maintained, opinionated building blocks you don’t have to write yourself. But they share one awkward truth with every fast-moving open-source project: they evolve constantly, and most of them are still pre-1.0.

And that’s where the quiet risk lives. AvmUpdater is built to take that risk off your plate.

The real challenge with keeping AVM modules current

On paper, updating a module version is trivial. You bump a number and move on. In practice, across a real repository, it’s anything but:

  • Module references are scattered across dozens of .bicep and .tf files, and checking each one by hand is tedious work you’d rather spend building.
  • Because AVM uses 0.x versioning, a minor bump isn’t a safe bump. A minor version can remove a parameter, change a type, or rename an output, and silently break your IaC.
  • The breaking change rarely announces itself. You find out at plan time, or worse, at deploy time.

So most teams do the sensible thing: they pin versions and stop looking. Which is safe right up until it isn’t, the day you finally need to move and discover you’re twelve versions behind.

That’s exactly the gap AvmUpdater is designed to close.

Introducing AvmUpdater

AvmUpdater is a free, open-source PowerShell tool that scans your Bicep and Terraform code for outdated AVM modules, ranks every available update by risk, waits for your approval, and then applies each one safely, rolling back anything that fails validation.

The key principle is simple: no change is written unless it survives validation.

No blind bumps. No “hope it plans clean.” Just safe, evidence-based updates.

How it works (four clear steps, one human gate)

One of the things I like most about how this turned out is that the flow stays honest and easy to follow:

  1. Scan. Walks your Bicep and Terraform files, finds every AVM module reference, and compares the current version against the latest available.
  2. Report. Generates a clear Markdown and JSON overview of every available update, ranked by risk, flagging potential breaking changes to the interface, parameters, and outputs.
  3. Approve. You decide what gets applied. Interactively in the local CLI, or via a GitHub / Azure DevOps Pull Request where merge equals approval.
  4. Safe update. Bumps the version references, then runs bicep build/lint or terraform init/validate/plan, detects destroy/replace operations, and rolls back any file that fails.

The human approval gate sits right in the middle, on purpose. The tool does the tedious part; the decision stays yours.

Three layers of breaking-change protection

This is the part that matters most, so it’s worth pulling apart. AvmUpdater doesn’t trust a version number on its own. It checks an update three ways before committing anything:

  • Version semantics. Understands what a patch / minor / major bump actually means on a 0.x module.
  • Interface diffs. Detects changes to parameters, types, and outputs before you apply them.
  • Toolchain validation. Validates the result with the real IaC toolchain (bicep build/lintterraform init/validate/plan), not a guess.

And if a single file fails? Per-file rollback. Only that file is reverted, and every other successful update stays. It’s also idempotent: run it ten times and you get the same result.

Risk tiers, so you know what you’re looking at

Every update lands in one of four tiers, so the report tells you where to spend your attention:

TierMeaning
LOWPatch bump, no detected interface changes
MEDIUMMinor bump on 0.x, no breaking signals detected
HIGHMajor bump or detected breaking interface changes
UNKNOWNDiff and changelog both unavailable

All tiers are included in the PR by default. You review the diff and the attached report artifact before merging. Which tiers actually trigger a PR is yours to configure.

Three ways to approve

Because not every team works the same way:

  • Local CLI. Approve interactively on your own machine.
  • GitHub Pull Request. Open a PR, merge to approve.
  • Azure DevOps Pull Request. Same model, ADO-native.

Automate it (without handing over the keys)

Drop AvmUpdater into GitHub Actions or Azure DevOps and let it run on a schedule, out of the box a weekly run (Mondays, 08:00 UTC). When updates are available, it opens a Pull Request with the report attached.

Possible to run manually and set custom settings:

Choose which repository and branch. Use the Dry Run option just to see the outcome.

The important word here: never auto-merged. The pipeline creates the PR, and a human always reviews and merges. Automation finds the work; you stay in control of what ships.

The PR is requested and can be reviewed including the change log per module.

# Requires PowerShell 7+
git clone https://github.com/gettothe-cloud/avm-updater.git
Import-Module ./AvmUpdater
Invoke-AvmUpdate -Path . -ApprovalMode local

That’s the whole quick start. Clone, import, scan.

Why this matters

The real value here isn’t “tidier version numbers.” It’s the shift from:

  • staying behind → staying current
  • manual tracking → automated scanning
  • silent breaking changes → ranked, visible risk
  • all-or-nothing updates → per-file safety

Staying on the latest AVM modules stops being a scary, batch-it-up-for-later chore and becomes a routine, low-drama PR you actually trust.

Who this is for

If you write or maintain Azure IaC, you’ll recognise the pain immediately:

  • Platform / Cloud engineers  keeping a large Bicep or Terraform estate current
  • Consultants / MSPs  managing IaC across many client repos
  • DevOps / pipeline owners  who want scheduled, reviewable update PRs
  • Anyone who has ever been bitten by a “minor” 0.x bump

Where to find it

Free, MIT-licensed, no sign-up, no paywall. Clone it, fork it, break it, send a PR.

AvmUpdater is an independent, community open-source project. It is not affiliated with, endorsed by, or sponsored by Microsoft. “Azure” and “Azure Verified Modules” are trademarks of Microsoft.

Share and Enjoy !

Share and Enjoy !

Shares

Designer (23)

Stay close to the action—follow GetToThe.Cloud across social!
Deep dives and hands‑on how‑tos on Azure Local, hybrid cloud, automation, PowerShell/Bicep, AVD + FSLogix, image pipelines, monitoring, networking, and resilient design when the internet/Azure is down.

🔗 Our channels
▶️ YouTube: https://www.youtube.com/channel/UCa33PgGdXt-Dr4w3Ub9hrdQ
💼 LinkedIn Group: https://www.linkedin.com/groups/9181126/
✖️ X (Twitter): https://x.com/Gettothecloud
🎵 TikTok: https://www.tiktok.com/@gettothecloud
🐙 GitHub: https://github.com/GetToThe-Cloud/Website
💬 Slack: DM us for an invite
📲 WhatsApp: DM for the community link

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners. View more
Cookies settings
Accept
Privacy & Cookie policy
Privacy & Cookies policy
Cookie name Active

Who we are

Our website address is: https://www.gettothe.cloud

Comments

When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection.An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.

Media

If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.

Cookies

If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year.If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser.When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select "Remember Me", your login will persist for two weeks. If you log out of your account, the login cookies will be removed.If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.

Embedded content from other websites

Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website.These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.

Who we share your data with

If you request a password reset, your IP address will be included in the reset email.

How long we retain your data

If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue.For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.

What rights you have over your data

If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.

Where we send your data

Visitor comments may be checked through an automated spam detection service.
Save settings
Cookies settings