The move from generative AI to agentic AI is a security event, even though it is usually treated as a product feature. A model that answers a question is a content-safety problem. An agent that can call tools, query data, and take actions on your behalf is an identity, an authorization, and a blast-radius problem. On Azure, the building blocks for agents through Azure OpenAI and Azure AI Foundry are maturing quickly, and the governance discipline has to keep pace. This is how I would secure them.

What changes when the model can act

A traditional application has a fixed set of code paths you can review. An agent decides its own path at runtime, choosing which tools to call and in what order based on input you do not fully control. That breaks two assumptions security usually relies on. First, the agent’s effective permissions are whatever its tools can do, so an over-scoped tool is an over-scoped agent. Second, untrusted input, a document the agent retrieves, a webpage it reads, can carry instructions, which is the prompt-injection problem turned into an action problem. The guardrails therefore have to address both what the agent is allowed to do and what it is allowed to be told.

Guardrails at the input and output boundary

The first boundary is the content itself. Azure AI Content Safety provides the controls that belong here, including prompt-shield style detection for jailbreak and injection attempts and groundedness checks that flag responses unsupported by the provided source. Azure OpenAI’s configurable content filters sit in the same boundary. The principle is the one I apply to every system I secure: put the control where every request passes through, not as an optional wrapper a caller can skip. For an agent, that means the safety layer is part of the request path, not a courtesy the application is trusted to invoke.

Guardrails on identity and authorization

This is the part teams underestimate. An agent needs an identity, and that identity should be a Microsoft Entra workload identity or managed identity, never a static key embedded in code. Once the agent has a real identity, its access to data and tools is governed by ordinary, auditable authorization: scoped role assignments, least privilege per tool, and Conditional Access where it applies. The test I use is simple, and it is the same one I use for human access at scale: if the agent is compromised, what can it reach? If the honest answer is “more than its task requires,” the authorization is wrong, and no amount of prompt filtering compensates for an agent that holds excess privilege.

Guardrails on the network and the data path

Agentic workloads should not talk to their model and data endpoints across the public internet by default. On Azure that means private endpoints for Azure OpenAI and AI Foundry resources, network isolation around the agent’s runtime, and explicit egress control so the agent can only reach the systems it is supposed to. Retrieval-augmented agents add a data-governance requirement on top: the sources an agent retrieves from should be classified and access-controlled, because an agent that retrieves from an unrestricted store inherits that store’s exposure. Pairing the agent’s data access with Microsoft Purview classification keeps the retrieval layer inside the same governance regime as the rest of your data.

Guardrails on evidence

Everything above has to be observable, or you cannot govern it. Agent invocations, tool calls, content-safety verdicts, and authorization decisions should be logged to a durable store so that oversight is continuous rather than a periodic review. This is the same continuous-compliance posture I argue for in every other domain: the system produces evidence of its own behavior as it runs, so that when someone asks “what has this agent been doing,” the answer is a query, not an investigation.

The takeaway

Securing agentic AI on Azure is not a single feature, it is a layered posture: content safety on the request path, real Entra identity with least-privilege authorization, network and data isolation around the runtime, and continuous logging for oversight. None of this is exotic. It is the discipline of enforcing at the chokepoint and proving behavior continuously, applied to a workload that can now act on its own. The organizations that get agents right will be the ones that treat them as a new identity with a new blast radius, and govern them accordingly, from the start.