TL;DR
Managing cloud infrastructure remains a highly manual, complex, and error-prone task for DevOps teams. This paper evaluates how LLM-powered AI agents perform across different cloud management interfaces—SDKs, CLIs, Infrastructure-as-Code (IaC), and Web UIs—and proposes a blueprint for a reliable, multi-agent architecture designed to safely automate cloud operations.
What Problem Does This Paper Address?
Cloud computing is the backbone of modern IT, but configuring and maintaining it is a continuous headache. DevOps engineers must constantly provision resources, monitor system health, and execute updates. To do this, they rely on four distinct modalities: Software Development Kits (SDKs), Command Line Interfaces (CLIs), Infrastructure-as-Code (IaC) platforms like Terraform, and Web Portals (often called "ClickOps").
Each interface has a steep learning curve and distinct operational trade-offs. As organizations shift toward multi-cloud environments, engineers are forced to master entirely different ecosystems to avoid vendor lock-in. The authors explore a compelling question: Can AI agents step in as automated DevOps engineers, and if so, which tooling modality is the best fit for an AI-driven workflow?
Methods
The authors built and compared four preliminary AI agent prototypes, each tasked with managing virtual machine (VM) lifecycles through a different interface:
- SDK Agent: Generates and executes Python code using Azure’s Python SDK.
- CLI Agent: Writes Shell scripts interacting with the cloud via Azure CLI commands.
- IaC Agent: Generates and deploys declarative Terraform configurations.
- ClickOps Agent: Navigates the web console using screenshots and accessibility trees (AXTree).
The SDK, CLI, and IaC agents were powered by Azure Copilot (a GPT-4 model fine-tuned for Azure), while the ClickOps agent utilized GPT-4o. The agents were evaluated across three core cloud lifecycle stages: Provisioning (creation), Updates, and Monitoring.
Datasets
The paper does not introduce a new training dataset. Instead, it evaluates commercial LLMs using a custom-designed experimental benchmark focused on core VM management operations. The benchmark includes tasks of varying complexity, such as creating a single VM, connecting multiple VMs to a load balancer, executing live or destructive resource updates, and retrieving real-time runtime telemetry.
Key Insights and Ideas
- No Single Modality Fits All: AI agents exhibit distinct strengths depending on the interface they use. CLIs excel at rapid, straightforward provisioning; IaC is superior for complex, destructive updates; and Web UIs are naturally suited for monitoring and visualization.
- The ClickOps Penalty: While web automation is highly effective for visual monitoring tasks, it is incredibly slow and error-prone for resource creation. The ClickOps agent required up to 30× more steps than the CLI agent due to the overhead of page rendering and step-by-step UI interactions.
- The State vs. Context Dilemma: For infrastructure updates, agents must understand the pre-existing cloud state. While IaC tools inherently track state, passing massive state files quickly exhausts an LLM's context window, severely degrading performance.
- Error Feedback Disparity: Code-based modalities (SDK, CLI, IaC) return precise error logs, allowing agents to iteratively self-correct. In contrast, web interfaces often yield ambiguous UI-level errors that are much harder for an agent to interpret.
Key Results
The authors measured performance based on Success Rate (SR) and the average number of steps required to complete a task:
- Provisioning: The CLI agent was the most efficient, achieving a perfect 1.0 SR in just 1.6 steps on average. The IaC agent also hit a 1.0 SR (2.0 steps). The SDK agent achieved a 0.67 SR, while the Web agent lagged behind at a 0.33 SR, requiring a massive 46.0 steps.
- Updates: For destructive updates (e.g., changing a VM type from standard to spot, which requires tearing down and recreating the instance), the IaC agent significantly outperformed the others. Because Terraform abstracts the teardown sequence into a single attribute change, it bypassed the complex multi-step imaging sequences that caused the SDK, CLI, and Web agents to fail.
- Monitoring: The Web agent achieved a perfect 1.0 SR (2.75 steps) for complex monitoring tasks, leveraging the portal's built-in visual representations. Conversely, the IaC agent struggled heavily, posting a low 0.40 SR due to its inability to easily fetch real-time runtime telemetry.
Limitations and Future Work
Despite promising results on simple tasks, agent failures remain common due to hallucinations, deprecated method invocations, and context window limitations.
To transition AI agents from prototypes to production-ready tools, the authors outline a future architecture consisting of:
- A User-Agent Interface: Incorporating Reinforcement Learning from Human Feedback (RLHF) to clarify user intent and issue safety alerts.
- An Agent-Cloud Interface: Providing a unified cloud state to prevent resource drift and race conditions when mixing modalities.
- Multi-Agent Orchestration: Routing tasks to specialized "expert" agents based on task complexity.
- A Dual-Phase Workflow: Separating Exploration (safely testing execution strategies in a sandboxed "cloud gym") from Exploitation (executing cached, verified workflows in production).
Summary updated