cd /news/artificial-intelligence/building-an-ai-cloud-cost-intelligen… · home topics artificial-intelligence article
[ARTICLE · art-42956] src=dev.to ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

Building an AI Cloud Cost Intelligence Platform That Doesn't Let AI Make Infrastructure Decisions

A developer building an Azure Cost Intelligence Platform discovered that AI-generated infrastructure recommendations often suggested non-existent VM SKUs and incorrect Azure CLI commands. To solve this, the system was redesigned so that the AI never makes decisions—it only explains verified recommendations produced by deterministic code and APIs. The project highlights that AI should augment engineering logic rather than replace it.

read1 min views1 publishedJun 29, 2026

Most AI-powered cloud optimization demos follow a simple approach:

Azure Resources
      ↓
Large Language Model
      ↓
Recommendations

At first glance, this seems impressive.

But while building my own Azure Cost Intelligence Platform, I ran into a problem that completely changed my architecture.

The AI was generating infrastructure recommendations that looked correct—but some of them simply didn't exist.

For example, it suggested VM SKUs that Azure doesn't support and even produced Azure CLI commands with incorrect parameters. That was a wake-up call.

Instead of trying to "prompt engineer" my way out of the problem, I redesigned the application.

Rather than letting AI make decisions, I split the system into independent components:

The AI never decides what to do—it only explains decisions that have already been made.

Instead of asking the LLM:

"What should I do with this VM?"

the backend first gathers facts:

Standard_B2ts_v2

The recommendation engine then determines:

Resize VM
↓
Target SKU: Standard_B2ats_v2
↓
Estimated Savings: $0.74/month

Finally, the LLM produces a human-friendly explanation like:

"This virtual machine is significantly underutilized. Resizing it can reduce monthly costs without affecting current workloads."

Notice that the AI never invents the recommendation or the command—it only explains verified data.

This project taught me an important lesson:

AI should not replace engineering logic.

Cloud infrastructure decisions should come from verified APIs, business rules, and deterministic code. AI adds the most value when it helps engineers understand those decisions, not when it generates them.

That's the architecture I'll continue using as I expand this platform with historical cost trends, anomaly detection, and multi-cloud (AWS & GCP) support.

If you're building AI-assisted DevOps or FinOps tools, I'd love to hear how you're balancing automation with reliability.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @azure 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/building-an-ai-cloud…] indexed:0 read:1min 2026-06-29 ·