# Bicep What-If Change Classifier

> Classifies az deployment what-if output (text or JSON) into safe, review and blocker changes: stateful deletes, removed locks, weakened TLS or network settings, immutable property changes and new role assignments. Offline and read-only; a go/no-go before you deploy.

Bicep What-If Change Classifier is a paid AI agent skill on Agensi by Abdelrhman Fikri, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9.99 (one-time purchase)
- Creator: [Abdelrhman Fikri](https://www.agensi.io/creators/abdelrhman-fikri)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/bicep-what-if-change-classifier
- Tags: devops, security, code-review, bicep, arm, azure, what-if, deployment

## What it does

- Reads az deployment what-if output saved as text (with or without colour codes) or JSON
- Classifies each resource change as create, modify, delete, deploy or unchanged
- Flags deletes of stateful resource types and removed resource locks as blockers
- Flags weakened security settings such as public network access, TLS, HTTPS-only, soft delete and open sources
- Flags changes to normally immutable properties that may fail or force replacement
- Compares the what-if totals line against the changes it parsed

## Who it's for

- **Platform and DevOps engineers:** who deploy Bicep or ARM templates and want a second pair of eyes on a what-if result, and reviewers approving infrastructure pull requests.

## About this skill

A what-if result can run to hundreds of lines, and the dangerous change is easy to miss: a database server marked for deletion, a lock removed, TLS lowered, a storage account switched to public access. This skill gives your agent a deterministic, offline workflow: save the what-if output, run the bundled classifier, read the blockers and warnings, and decide whether to deploy.

The classifier is a single standard-library script. It does not call Azure and does not deploy anything. It reads the text layout that az deployment what-if prints (resource lines with +, -, ~, = and ! symbols and property lines with =>), strips colour codes, and also reads the JSON form with a changes list. It classifies every resource, flags deletes of stateful types (storage accounts, key vaults, SQL servers and databases, disks, AKS clusters, Cosmos DB, VMs and more), removed locks, lowered TLS, enabled public network access, HTTPS-only turned off, soft delete or purge protection turned off, NSG sources opened to everything, default network access set to allow, and changes to properties that are normally immutable. New role assignments and public IPs are warnings. A totals-line comparison warns if the parser missed a change.

Synthetic example what-if files with expected output are included so you can verify the behaviour in seconds.

## Known limitations

- What-if output is a prediction and can include noise; the classifier cannot tell you what Azure will really do.
- The risk rules are a fixed list. A risky change outside the list is reported only as an info line.
- Text parsing follows the layout printed by az deployment what-if; if your CLI version prints it differently, the totals cross-check warns when changes were missed.
- It cannot see what is already deployed, other scopes, or policy that may deny a change.
- Reports and explains; it never deploys or edits templates.

## Technical details

The classifier is a single standard-library Python script. It makes no network calls and never writes files. Give it files or directories; it reads .txt, .log and .json.

Text input is the layout printed by az deployment what-if: resource lines (symbols + - ~ = * x !) followed by a type, name and API version, and property lines with a before and after value. ANSI colour codes are stripped first. JSON input is an object with a changes list (resourceId, changeType, delta with path, before and after).

Each change is classified. Deletes of a fixed list of stateful resource types and removed locks are blockers; other deletes, new role assignments and new public IPs are warnings. Modified properties are checked against a fixed rule list: public network access, TLS version, HTTPS-only, soft delete, purge protection, blob public access, NSG source prefix, default network action, SSL enforcement, and normally immutable properties such as location and kind. Tags-only changes are info.

Exit codes: 0 no blockers, 1 blockers found, 2 bad arguments. Options: --format json, --hide-info.

What-if is a prediction and can contain noise; the rule list is fixed.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Bicep What-If Change Classifier skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does it need Azure access?

No. It only reads the what-if output you saved.

### Does it work on colour output?

Yes. Colour codes are stripped before parsing.

### Can it read JSON from a pipeline?

Yes. It reads an object with a changes list.

### Which Python?

Python 3.9 or newer, no packages to install.

### What does exit code 1 mean?

One or more BLOCKER findings. Warnings alone still exit 0.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
