Infrastructure as (Actual) Code with C# 15 and .NET 11.

In this session from dotnet, infrastructure definitions use familiar C# tools rather than YAML or a separate domain-specific language. The focus is on deploying Azure resources and enforcing infrastructure rules through the type system.

Defining Azure infrastructure in C#

Pulumi’s open-source .NET SDK lets developers express cloud infrastructure in plain C#. The session builds and deploys Azure infrastructure using tools C# developers already use in their daily work.

The approach treats infrastructure definitions as programming code, with the compiler helping check changes before they reach the cloud.

Compile-time rules for human and AI-generated changes

The session puts C# 15 and .NET 11 to work to catch infrastructure mistakes at compile time. Its central distinction is between rules expressed as instructions and rules encoded in the type system:

For teams using AI agents to generate infrastructure code, the emphasis is on making those constraints enforceable by the compiler rather than relying solely on the agent to follow written guidance.