Skip to content
← Back
Microsoft Azure · Product Designer

Designing an AI agent for Kubernetes troubleshooting

I designed the first iteration of the Azure Copilot Troubleshooting Agent experience that investigates AKS issues, explains what it found, and helps engineers review a safe next action.

The troubleshooting agent mid-investigation — collected artifacts, activity steps, and a diagnosis

Problem

Troubleshooting a Kubernetes issue required engineers to correlate commands, events, configuration, logs, and monitoring data across several tools.

Vision

Let the agent gather evidence and form a diagnosis while keeping its progress, sources, and proposed actions visible.

Impact

The experience reached preview, and prototype testing showed that participants understood what required attention and how to proceed.

Diagnostic context

Troubleshooting required information from several systems.

A single Kubernetes failure can involve workloads, nodes, networking, configuration, events, and metrics. Engineers often move between portal pages, dashboards, command-line tools, and documentation before they can identify a likely cause.

What an engineer checks
  • Resource state
  • Commands
  • Events
  • Configuration
  • Monitoring
A likely causeCorrelated by hand, across tools

Diagnosing one issue often requires evidence from several parts of the system.

Agent boundaries

The interaction model separates investigation from action.

I worked with product and engineering partners to define what the agent could do automatically and where human review was required. Evidence gathering and analysis could proceed while the agent worked; any resource-changing step remained visible and required confirmation.

Investigation · the agent proceeds
  • Gather evidence
  • Analyze findings
Runs automatically, with its progress and sources visible throughout.
Action · the engineer decides
  • Propose a change
  • Engineer reviews
  • Explicit confirmation
Nothing changes a resource until it has been reviewed and confirmed.

The agent can investigate independently while the engineer retains control of changes.

Starting with context

The agent begins with the current cluster and issue in scope.

The entry point carries the selected AKS context into Copilot, reducing setup and helping the agent choose relevant checks. The interface makes the active resource and investigation scope visible before the agent begins.

Starting with the active resource gives the agent useful context before the first prompt.

Visible investigation

Progress remains visible while the agent investigates.

The agent runs targeted Kubernetes commands and reads pod status, cluster events, resource metrics, and configuration to build a picture of the failure. Its activity groups into readable steps, so an engineer can follow what is being inspected and open the artifacts behind each one.

Investigation steps stay visible while the agent gathers evidence, and the run ends on a stated cause with remediation steps.

Diagnosis and action

The result connects diagnosis, evidence, and a controlled next step.

The final response explains the likely cause, summarizes the supporting signals, and proposes a remediation path. Resource-changing actions remain reviewable, with explicit confirmation before execution or a clear path to additional support.

Outcome

A repeatable interaction model for agentic troubleshooting.

The work balanced the speed of automated investigation with visible evidence and human control. In prototype testing, participants recognized what needed attention and understood the recommended next step, while proposed changes remained reviewable.

Reflection

Speed was never the hard part of an agentic tool.

Keeping the investigation visible, and keeping every change behind an explicit confirmation, is what let people trust the answer enough to act on it.

Next Project

Azure OpenAI for Developers

Helping developers get started with AI by doing, not just reading.

Azure OpenAI for Developers — lead image