Logo

azureArchetype

Home of all things Azure and AI

LinkedIn   YouTube   GitHub   Reddit  

Microsoft Certified Trainer

💬 Discuss This Series

Join the deployNatGateway open forum


deploymentChecklists

Know before you deploy — Azure resource prerequisites

azureApplicationGateway
azureFirewall-Basic
azureBastion
azureNatGateway
azureVpnGateway
azureWafPolicy

Frametype Logo
29 March 2026

Finding Your Flow State

in the Age of Vibe Coding and Agentic AI

by Matthew

resource "azurerm_key_vault" "main" { name = var.key_vault_name soft_delete_retention_days = 90 purge_protection_enabled = true } module "hub_network" { source = "./modules/networking/hub" address_space = var.hub_address_space } flow state // agentic pipeline active 74% 92% boredom flow anxiety

Infrastructure as Code · Vibe Coding · Agentic AI · Developer Experience

Matthew Collins · MCT · Azure Infrastructure · IaC · AI Foundry · 7 min read


People who know me have heard me say it: “Stay in the flow, avoid the noise.” In today’s Frontier construct, where delivering Infrastructure as Code means working alongside systems that plan, execute, and adapt on your behalf, that principle is more true, and more actionable, than ever.


There’s a particular kind of afternoon where everything clicks. Your templates are composing themselves almost before you think about them. The parameter files are structured, the CAF-aligned naming convention finally makes sense, and there’s not a squiggle in sight from your VS Code session. You’re not writing infrastructure. You’re conducting it.

Psychologist Mihaly Csikszentmihalyi called this flow: “a state of deep focus where challenge and skill align so perfectly that time collapses and the work feels effortless.” Athletes call it being “in the zone.” Developers have been quietly chasing it since the first time a semicolon made everything compile.

The interesting question right now, in 2026, is: what happens to flow when the AI isn’t just co-authoring the code, but running the whole deployment pipeline while you architect the next one?

“Flow doesn’t mean easy. It means the friction is in the right place — between your intent and the outcome, not between you and the tooling.”


First, a quick primer on the psychology

Csikszentmihalyi’s research identified eight characteristics of flow: clear goals, immediate feedback, a balance of challenge and skill, a sense of personal control, loss of self-consciousness, altered time perception, intrinsic reward, and effortless concentration. The model is often illustrated as a channel. Too easy and you’re bored; too hard and you’re anxious; just right and you’re in flow.

Boredom Zone Flow Zone Anxiety Zone
Writing resource blocks no one should be writing by hand when an agent can do it in moments Designing a modular IaC architecture with AI as your coding partner Debugging a deployment that hallucinated and used old resource IDs, or dragged you down the path of an outdated technology

The classic IaC process — using a transpilative (it’s a word, look it up) language like Bicep to compile into ARM templates, managing idempotency, untangling dependency graphs — has always lived somewhere between flow and frustration. The syntax is unforgiving and the feedback loop (deploy, fail, read the error, Google the error, repeat) is long. Flow was possible, but it required serious experience to get there.


Enter vibe coding — and the flow question it raises

“Vibe coding” is the loosely-defined practice of collaborating with an AI chatbot or agent on code in a more fluid, iterative, conversational way. Less specification, more direction. You describe intent; the model fills structure. The term captures something real: a shift in how developers, and especially architects, are working with AI today.

For IaC, this is genuinely transformative. A well-prompted AI interaction can scaffold a template module with proper parameter assignment, output definitions, and resource decorators in seconds. That frees you to operate at the architectural level, thinking about blast radius, reusability, compliance, and best practices, rather than fighting curly braces.

But here’s the nuance that gets lost in the hype: vibe coding doesn’t automatically create flow. It changes where the flow conditions need to come from.

Vibe coding can tick most of the flow boxes fast. Clear goal? Easy. Immediate feedback? Faster than ever. But challenge level and sense of control? Those depend entirely on whether you’re actually reviewing the output — or just merging it blindly and hoping for the best.


The trap: passive acceptance versus active design

Flow requires agency. It’s not passive absorption; it’s active navigation. The risk with vibe coding, especially for infrastructure work, is that the AI can produce code that looks right while quietly misunderstanding your environment. A Key Vault deployed with soft-delete enabled sounds harmless until every subsequent test deployment fails with a VaultAlreadyExists conflict the AI didn’t anticipate and can’t easily unwind. A policy assignment that silently ignores exemption scope can lead to a very bad Friday afternoon.

Experienced IaC architects who find flow with AI tools tend to share a common habit: they stay in the driver’s seat conceptually. They use AI chat and agents to handle the syntax and dependencies of infrastructure while they focus on the design. The model writes the resource block; the architect decides the blast radius. That division of labor, when it’s working well, is genuinely flow-inducing because both sides are doing what they’re best at.


Now add agentic AI — and watch the flow channel expand

Vibe coding is a conversation. Agentic AI is a delegation. That distinction matters enormously for flow.

An agentic AI system doesn’t just respond to prompts. It pursues goals across multiple steps, using tools, making decisions based on retrieval-augmented generation (RAG), and handing results back to you at the level of abstraction you actually care about. In IaC terms: you describe the target state, the agent runs the what-if analysis, identifies drift, generates the corrective templates, validates against your policy definitions, and surfaces a summary for your review. You never touched the code. You made the architectural call.

That’s not laziness. That’s flow at a higher state.

“With vibe coding, the AI clears the syntax so you can think about the design. With agentic AI, it clears the pipeline so you can keep your eye on the outcome.”

Think about what Csikszentmihalyi’s conditions look like when an agent is doing the heavy lifting:

01 — Clear goals You define intent at the system level: “Validate this module set against our approved Bicep definitions across all three regions, identify any drift or Zero Trust gaps, and produce a remediation plan I can review before anything gets touched.” The agent handles decomposition.

02 — Immediate feedback — supercharged. Custom agents running in Microsoft Foundry, integrated with your existing GitHub workflows, can run validation, surface drift, and return structured results in the same loop. The feedback is faster and richer than any manual cycle.

03 — Challenge at the right level When the agent handles the template mechanics, the work that’s left is the work that actually matters: design decisions, security posture, cost trade-offs, and the governance questions no prompt can answer for you. That’s where experienced architects thrive.

04 — Sense of control — maintained by design Well-designed agentic workflows surface decisions, not just outputs. The architect approves, redirects, and sets constraints. Autonomy without oversight is a liability; autonomy with checkpoints is flow.

05 — Intrinsic reward When AI handles the grunt work, the time you spend is on the problems only you can solve. That’s a fundamentally more satisfying workday and a more defensible career position.


The conditions that make agentic flow work

Agentic AI doesn’t hand you flow automatically any more than a CI/CD pipeline guarantees a clean deployment. The conditions still have to be right. A few things that consistently make the difference:

Design for checkpoints, not just completion. The best agentic IaC workflows treat the architect as the approver of consequential decisions, not a bystander to automation. “Here’s what I’m about to deploy, confirm?” keeps you in control and in the loop. It also keeps you sharp.

Give the agent a well-defined scope. Agentic systems work best when the goal is specific and the constraints are clear. “Modernize our IaC” is an invitation for chaos. “Audit these ten modules against our CAF baseline and flag anything that needs remediation” is a job description. Precision in your intent is what lets the agent move confidently.

Stay literate in what the agent is doing. This is the non-negotiable. Flow requires competence, and in an agentic context, competence means understanding the decisions the agent is making on your behalf.

“Architects who lose the thread of what their agentic pipeline is doing aren’t in flow; they’re on autopilot. Those are very different states.”

Use the reclaimed time intentionally. When an agent handles a deployment workflow that used to take you half a day, the flow opportunity is in what you do with the other four hours. Design the next architecture. Refine your module library. Even ideate on the next big thing. The agent multiplies your output, but only if you’re directing that multiplication somewhere meaningful.


The bigger picture

Csikszentmihalyi’s insight was that flow isn’t about the tools. It’s about the relationship between challenge and capability. Better tools don’t guarantee flow; they change the shape of the challenge.

The progression from traditional IaC deployment to vibe coding to agentic AI isn’t a story about automation replacing architects. It’s a story about the challenge level rising to meet growing capability. Each layer clears a different kind of friction: syntax, then pipeline, then repetition, freeing you to work at the level where the real decisions live.

For cloud architects, that’s a genuinely exciting place to be. The template structure is mostly solved. The pipeline is increasingly manageable. What’s left is the architecture, the governance, the system design — the work that actually matters and where flow is absolutely available.

Stay in the flow. Avoid the noise. The tools are finally good enough to let you find it.


#InfrastructureAsCode #Bicep #AgenticAI #MicrosoftFoundry #VibeCoding #AzureDevOps #FlowState #CloudArchitecture #AIFoundry

tags: azure - avd - iac

Back