- Home
- Skills
- DevOps & Cloud
- Bicep What-If Change Classifier
Bicep What-If Change Classifier
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.
$9.99
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.
Bicep What-If Change Classifier
Example session with this skill installed
Command: python3 scripts/classify_what_if.py examples/dirty/whatif-prod.txt
- Read your context and instructions
- Compiled the bicep what-if change
The sample what-if for a production resource group deletes a SQL server and a resource lock, lowers TLS, opens the storage firewall, moves a storage account to another region, and opens an NSG rule to every source.
[BLOCKER] whatif-prod.txt: DELETE Microsoft.Sql/servers/sql-app-prod: deletes a stateful resource type (data loss risk)
[BLOCKER] whatif-prod.txt: DELETE Microsoft.Authorization/locks/lock-rg: removes a resource lock
[BLOCKER] whatif-prod.txt: MODIFY Microsoft.Storage/storageAccounts/stappprod001: properties.minimumTlsVersion lowers TLS (TLS1_2 => TLS1_0)
[BLOCKER] whatif-prod.txt: MODIFY Microsoft.Storage/storageAccounts/stappprod001: properties.networkAcls.defaultAction becomes Allow
[BLOCKER] whatif-prod.txt: MODIFY Microsoft.Storage/storageAccounts/stappprod001: properties.publicNetworkAccess becomes Enabled
[BLOCKER] whatif-prod.txt: MODIFY Microsoft.Storage/storageAccounts/stappprod001: location changes (westeurope => northeurope); this property is normally immutable, so the change may fail or force replacement
[BLOCKER] whatif-prod.txt: MODIFY Microsoft.Network/networkSecurityGroups/nsg-app: properties.securityRules[0].properties.sourceAddressPrefix opens to *
[WARN] whatif-prod.txt: CREATE Microsoft.Authorization/roleAssignments/11111111-1111-1111-1111-111111111111: creates a role assignment; review the principal and scope
[WARN] whatif-prod.txt: CREATE Microsoft.Network/publicIPAddresses/pip-new: creates a public IP address
[INFO] whatif-prod.txt: MODIFY Microsoft.Web/sites/app-prod: tags only (2 change(s))
[INFO] whatif-prod.txt: CREATE Microsoft.Insights/components/appi-prod: creates a resource
Changes: 3 create, 3 modify, 2 delete, 1 unchanged, 0 deploy
Summary: 7 blocker(s), 2 warning(s), 1 file(s)
Command: python3 scripts/classify_what_if.py examples/clean
A harmless what-if (a tag change, a TLS upgrade and a new Application Insights component) returns exit code 0:
[INFO] whatif-safe.txt: MODIFY Microsoft.Web/sites/app-dev: tags only (1 change(s))
[INFO] whatif-safe.txt: MODIFY Microsoft.Storage/storageAccounts/stappdev001: 1 property change(s), none on the risk list
[INFO] whatif-safe.txt: CREATE Microsoft.Insights/components/appi-dev: creates a resource
Changes: 1 create, 2 modify, 0 delete, 1 unchanged, 0 deploy
Summary: 0 blocker(s), 0 warning(s), 1 file(s)
Connects securely to your tools. The creator never sees your data.
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.
- 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.
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
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
Permissions
What's inside
Frequently Asked Questions
New in DevOps & Cloud
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.