The core Azure services for a .NET 10 workload (compute, Azure SQL, Storage, Key Vault, Service Bus, App Configuration, Application Insights and Azure Monitor) and how they fit together.
A typical .NET team uses a small, repeatable set of Azure services:
Everything is wired together with managed identity and Entra ID RBAC, not connection strings, and deployed with infrastructure as code. The trade-off: managed PaaS services remove patching and plumbing, but you accept each service's limits, pricing model and region availability.
"I think of Azure for a .NET team in layers. Compute is where the code runs: App Service for a normal ASP.NET Core API, Azure Functions when the work is triggered by events like a queue message or a timer, and Container Apps or AKS when the team ships containers. Data is Azure SQL Database for the relational model, Blob Storage for files like PDFs and uploads, and a Redis cache (Azure Managed Redis, or Azure Cache for Redis on older estates) in front of the database for frequently read data such as product catalogues or reference data.
Then there are the platform services that every app needs. Key Vault holds secrets, keys and TLS certificates. App Configuration holds non-secret settings and feature flags. Service Bus carries messages between services reliably, and Event Grid routes events such as 'a blob was created'. Application Insights, which sits on Azure Monitor and Log Analytics, collects requests, dependencies, exceptions and traces, usually through the OpenTelemetry-based Azure Monitor distro. The glue is managed identity: the app gets an Entra ID identity, and I grant it roles like Key Vault Secrets User instead of pasting a connection string anywhere. All of it is created from Bicep or Terraform, never by clicking in the portal.
The mistake I see is teams treating Azure as 'a VM somewhere' and keeping secrets in
appsettings.jsonor app settings. The point of PaaS is that Azure runs the plumbing, so my job is choosing the right service and wiring identity, networking and monitoring properly. For an Australian client I'd also deploy to Australia East, with Australia Southeast for disaster recovery, so the data stays onshore."
| Concern | Azure service | .NET package |
|---|---|---|
| Run the API | App Service (or Container Apps) | none, just deploy |
| Relational data | Azure SQL Database | Microsoft.EntityFrameworkCore.SqlServer |
| Files | Blob Storage | Azure.Storage.Blobs |
| Cache | Azure Managed Redis | Microsoft.Extensions.Caching.StackExchangeRedis, HybridCache |
| Secrets, certificates | Key Vault | Azure.Extensions.AspNetCore.Configuration.Secrets |
| Settings, feature flags | App Configuration | Microsoft.Extensions.Configuration.AzureAppConfiguration, Microsoft.FeatureManagement |
| Messages | Service Bus | Azure.Messaging.ServiceBus |
| Background jobs on events | Azure Functions | Microsoft.Azure.Functions.Worker |
| Telemetry | Application Insights / Azure Monitor | Azure.Monitor.OpenTelemetry.AspNetCore |
| Identity | Entra ID + managed identity | Azure.Identity |
| Pair | Difference |
|---|---|
| Key Vault vs App Configuration | Secrets vs settings; App Configuration can reference Key Vault secrets |
| Queue Storage vs Service Bus | Simple cheap queue vs full broker (topics, sessions, dead-lettering, transactions) |
| Event Grid vs Event Hubs | Routing discrete events vs ingesting high-volume streams |
| Application Insights vs Azure Monitor | App telemetry is one part of Azure Monitor; both store data in Log Analytics |
A standard setup is one App Service plan running the API in Australia East, Azure SQL, a storage account, Key Vault and Application Insights, all reached with a system-assigned managed identity. A team can stand that up from one Bicep file in under 15 minutes, and it removes every secret from source control, which is also one of the easiest wins against the ACSC Essential Eight.
Checks that the candidate knows the standard Azure building blocks for a .NET app and how they connect, not just the names.
Green flags
Red flags
Azure services sit on a spectrum of how much Azure manages for you:
You manage more Azure manages more
|-- VMs (IaaS) --|-- AKS --|-- Container Apps --|-- App Service --|-- Functions --|
OS, patching nodes, containers only code only code + scale
The further right you go, the less you operate, but the more you accept the platform's limits (timeouts, supported runtimes, networking options).
Entra ID tenant
βββ Management groups
βββ Subscriptions (billing and quota boundary)
βββ Resource groups (lifecycle boundary)
βββ Resources (App Service, SQL, Key Vault ...)
RBAC roles and Azure Policy can be assigned at any level and inherit downward. Teams usually use one resource group per app per environment, such as rg-orders-prod-aue.
Every service has two surfaces. The control plane (Azure Resource Manager, management.azure.com) creates and configures resources. The data plane is the service itself: reading a secret, writing a blob, running a query. Roles are separate too: Contributor can create a storage account but cannot read blobs; Storage Blob Data Reader can. Beginners hit this when a 'Contributor' still gets 403 reading data.
App Service ββ(1) request tokenβββΆ local managed identity endpoint
ββ(2) Entra ID access token (audience = vault.azure.net)
ββ(3) GET secret + Bearer tokenβββΆ Key Vault
checks RBAC role
Azure.Identity does this for you through DefaultAzureCredential or ManagedIdentityCredential, caches the token and refreshes it before expiry.
Australia East (Sydney) has availability zones and is the usual primary region. Australia Southeast (Melbourne) is its paired region for disaster recovery. Australia Central and Central 2 (Canberra) target government workloads. Keeping personal information onshore makes Privacy Act obligations simpler, especially APP 8 on cross-border disclosure.
az group create -n rg-demo-aue -l australiaeast.az webapp up --runtime "DOTNETCORE:10.0".Azure.Monitor.OpenTelemetry.AspNetCore and find your requests in Application Insights.A minimal .NET 10 API wired to Key Vault, Blob Storage and Application Insights with managed identity (no connection strings):
using Azure.Identity;
using Azure.Monitor.OpenTelemetry.AspNetCore;
using Azure.Storage.Blobs;
using Microsoft.Extensions.Azure;
var builder = WebApplication.CreateBuilder(args);
// One credential for every Azure client: managed identity in Azure, your az login locally.
var credential = new DefaultAzureCredential();
// Key Vault secrets become ordinary configuration keys (Db--Password -> Db:Password).
builder.Configuration.AddAzureKeyVault(
new Uri(builder.Configuration["KeyVault:Uri"]!), credential);
// Register Azure SDK clients once, as singletons, with the same credential.
builder.Services.AddAzureClients(clients =>
{
clients.AddBlobServiceClient(new Uri(builder.Configuration["Storage:BlobUri"]!));
clients.UseCredential(credential);
});
// Requests, dependencies and logs go to Application Insights via OpenTelemetry.
builder.Services.AddOpenTelemetry().UseAzureMonitor();
var app = builder.Build();
app.MapGet("/files/{name}", async (string name, BlobServiceClient blobs, CancellationToken ct) =>
{
var blob = blobs.GetBlobContainerClient("documents").GetBlobClient(name);
return await blob.ExistsAsync(ct)
? Results.Stream(await blob.OpenReadAsync(cancellationToken: ct))
: Results.NotFound();
});
app.Run();
{
"KeyVault": { "Uri": "https://kv-orders-prod-aue.vault.azure.net/" },
"Storage": { "BlobUri": "https://stordersprodaue.blob.core.windows.net/" }
}
appsettings.json or app settings. Why it is wrong: They leak through source control, logs and screenshots, and rotating them is manual. Instead: Use managed identity and Entra ID RBAC; keep the few unavoidable secrets in Key Vault.The senior view is that the service list matters less than the defaults you set around it: one identity model (managed identity everywhere), one standard telemetry pipeline (OpenTelemetry instrumentation exporting to Azure Monitor and Application Insights), one IaC tool with every resource in code, and a naming and tagging convention so cost and ownership are visible. Those decisions outlive any single service choice, and they are what lets an estate grow from one API to twenty without becoming unmanageable.
| Option | When it fits | Cost | When not to |
|---|---|---|---|
| App Service | Standard web apps and APIs | Low ops, pay per plan | Many small services, scale to zero |
| Container Apps | Containerised microservices, event scaling | Pay per use, scale to zero | You need full Kubernetes APIs |
| AKS | Many services, platform team, custom networking | Highest ops | Small team, few services |
| Functions | Event-driven, spiky work | Pay per execution | Long-running stateful APIs |
I'd inventory and classify every setting first: secrets, environment-specific values, shared values, and which must change live. Secrets go to Key Vault. Non-secret settings and feature flags go to Azure App Configuration with a label per environment, and secrets are referenced from there through Key Vault references. The app authenticates with its managed identity using least-privilege roles, and where possible secrets disappear entirely through passwordless Entra ID auth to SQL, Storage and Service Bus.
For refresh, use a sentinel key with a refresh interval and a secret refresh interval, and read live values through IOptionsMonitor. Rotation uses overlapping versions, so old and new both work during the window. Add start-up timeouts and replicas, and keep ValidateOnStart.
The trade-off: central, audited, rotatable configuration, in exchange for a network dependency at start-up that you must design for.
Service Bus, RabbitMQ and SQS are queue brokers: a message is delivered, settled and gone. Kafka is a partitioned, retained log: messages stay for the retention period and each consumer group tracks an offset, so you can replay.
For a .NET system on Azure doing commands and business events, I default to Service Bus. I pick Kafka when I need high-volume streaming and replay. The trade-off is features and simplicity versus throughput and history.
ASP.NET Core configuration is a layered key-value store. IConfiguration merges an ordered list of providers into one flat, case-insensitive dictionary. WebApplication.CreateBuilder adds, in order: appsettings.json, appsettings.{Environment}.json, user secrets (only in Development), environment variables and command-line arguments. When two providers set the same key, the one added last wins, so an environment variable on the server overrides the JSON file you shipped.
:, e.g. ConnectionStrings:Default.__ instead, e.g. ConnectionStrings__Default, because : is not allowed in Linux variable names.The trade-off: layering lets one build artifact run everywhere, but a value can come from five places, so you need to know the order to find out which one won.
Last updated 23 Nov 2026.