Maps the core Azure services a .NET team uses (App Service, Functions, Azure SQL, Blob, Key Vault, Service Bus, Monitor) to their AWS counterparts (Elastic Beanstalk/App Runner/ECS, Lambda, RDS, S3, Secrets Manager, SQS/SNS, CloudWatch/X-Ray) and the differences that matter: IAM, regions and accounts.
Most Azure services have a close AWS match: App Service maps to Elastic Beanstalk or App Runner (though most .NET teams end up on ECS with Fargate), Functions to Lambda, Azure SQL to RDS for SQL Server, Blob Storage to S3, Key Vault to Secrets Manager plus KMS, Service Bus to SQS plus SNS, and Azure Monitor / Application Insights to CloudWatch plus X-Ray or OpenTelemetry.
What catches Azure developers out is not the services but the plumbing:
The trade-off: the names map one to one, but the operating model (identity, networking, accounts) does not.
"Most of what I'd use on Azure has a direct AWS equivalent, so I'd start with the mapping and then talk about where the model differs. For hosting an ASP.NET Core API, App Service's nearest equivalents are Elastic Beanstalk and App Runner, but in practice most .NET teams on AWS run containers on ECS with Fargate, which is closer to Azure Container Apps. Azure Functions maps to Lambda, which has had a managed
dotnet10runtime since January 2026. Azure SQL maps to Amazon RDS for SQL Server, usually licence-included, so EF Core and our T-SQL work unchanged. Blob Storage is S3, Key Vault is split between Secrets Manager for secrets and KMS for keys, Service Bus is SQS for queues plus SNS for pub/sub, and Azure Monitor and Application Insights become CloudWatch for logs, metrics and alarms, with X-Ray or OpenTelemetry for distributed tracing.Where it really differs is identity and structure. On Azure I'd give the app a managed identity and assign RBAC roles. On AWS the app runs with an IAM role, for example an ECS task role or a Lambda execution role, and the SDK's default credential chain picks it up, so there are still no keys in config. Permissions are JSON policies scoped to resource ARNs, which is more granular but easier to get wrong. And the isolation boundary is the account, grouped with AWS Organizations, rather than subscriptions and resource groups. For an Australian workload I'd pick Sydney, ap-southeast-2, with Melbourne, ap-southeast-4 as the second region for data residency.
The mistake I see is assuming one to one names means one to one behaviour. SQS isn't Service Bus: it has no sessions or built-in duplicate detection on standard queues, and you need SNS for topics. The services translate quickly; the operating model takes longer."
| Need | Azure | AWS | Notes |
|---|---|---|---|
| Host a web API (PaaS) | App Service | Elastic Beanstalk, App Runner | Beanstalk runs EC2 for you; App Runner is container-based |
| Host containers | Container Apps, AKS | ECS on Fargate, EKS | ECS is AWS's own orchestrator; EKS is managed Kubernetes |
| Serverless functions | Azure Functions | AWS Lambda | Lambda has a 15-minute maximum run time |
| Relational database | Azure SQL Database | RDS for SQL Server, Aurora | RDS is closer to Azure SQL Managed Instance |
| Object storage | Blob Storage | S3 | Both have tiers and lifecycle rules |
| Secrets and keys | Key Vault | Secrets Manager, KMS, Parameter Store | Parameter Store is cheaper for plain config |
| Queues and topics | Service Bus | SQS, SNS, Amazon MQ | SNS fans out to SQS queues |
| Events | Event Grid | EventBridge | Rules route events to targets |
| Event streaming | Event Hubs | Kinesis Data Streams, MSK (Kafka) | |
| Monitoring | Azure Monitor, App Insights | CloudWatch, X-Ray | OpenTelemetry works on both |
| Identity for apps | Managed identity + RBAC | IAM roles + policies | No keys in either case |
| Isolation | Subscription, resource group | Account, Organizations, tags | |
| IaC | Bicep, ARM | CloudFormation, CDK | Terraform works on both |
| Area | Azure habit | AWS reality |
|---|---|---|
| Permissions | Assign a built-in role at a scope | Write or attach JSON policies; resource ARNs and conditions matter |
| Messaging | Service Bus gives queues, topics, sessions, duplicate detection | SQS standard is at-least-once with best-effort ordering; FIFO queues for ordering; SNS for fan-out |
| Monitoring | App Insights auto-collects requests and dependencies | CloudWatch logs and metrics are separate; you add OpenTelemetry or X-Ray for traces |
| Grouping | Resource groups delete together | No resource group equivalent; use tags, accounts and CloudFormation stacks |
| Networking | VNet, private endpoints | VPC, security groups, VPC endpoints (PrivateLink) |
A .NET 10 API moved from App Service to ECS on Fargate in Sydney kept the same container image and EF Core code. The work was in IAM (one task role with three scoped policies replaced two managed identity role assignments), swapping Application Insights for OpenTelemetry exporting to CloudWatch and X-Ray, and replacing Service Bus sessions with SQS FIFO message groups. The migration took [n] sprints, and p95 latency stayed within [5%] of the Azure baseline.
Checks whether the candidate can transfer Azure knowledge to AWS quickly and knows where the equivalents are only approximate.
Green flags
Red flags
Both clouds sell the same building blocks: compute at several levels of abstraction, managed databases, object storage, messaging, secrets and monitoring. The levels line up:
More control, more ops Less control, less ops
|----------------------------------------------------------------|
VMs Kubernetes Containers PaaS Web PaaS Functions
Azure VM AKS Container Apps App Service Functions
EC2 EKS ECS on Fargate App Runner / Lambda
Beanstalk
If you know where a service sits on this line in one cloud, you can usually find its partner in the other.
On Azure, a managed identity is an Entra ID principal attached to a resource, and Azure RBAC grants it a role at a scope (subscription, resource group, resource).
On AWS, an IAM role is assumed by a service (ECS task, Lambda, EC2 instance profile). AWS STS hands the workload short-lived credentials. What the role can do is defined by policies:
{
"Effect": "Allow",
"Action": ["s3:GetObject", "s3:PutObject"],
"Resource": "arn:aws:s3:::orders-documents/*"
}
The AWS SDK for .NET finds these credentials through its default credential chain (environment variables, the shared profile, then the container or instance metadata endpoint), the same idea as DefaultAzureCredential.
AWS's hard boundary is the account. Larger organisations use AWS Organizations with separate accounts per environment (dev, test, prod) and Service Control Policies to cap what any account can do, similar to management groups and Azure Policy. There is no resource group; you use tags and CloudFormation stacks to group and delete things.
Service Bus is a full broker: queues, topics with subscriptions and filters, sessions, scheduled messages, duplicate detection. On AWS that is split:
Application Insights collects requests, dependencies and exceptions with one package. On AWS you combine CloudWatch Logs (log groups), CloudWatch metrics and alarms, and X-Ray or the AWS Distro for OpenTelemetry for traces. Standardising on OpenTelemetry in .NET keeps the code the same on both clouds.
AWS has Asia Pacific (Sydney) ap-southeast-2 and Asia Pacific (Melbourne) ap-southeast-4. Keeping data in those two regions supports Privacy Act 1988 and APP 8 expectations about cross-border disclosure, but you still need to check where global services (for example CloudFront logs or IAM Identity Center) store data.
s3:GetObject on one bucket prefix, and test it with the IAM Policy Simulator.aws sts get-caller-identity locally with a profile, then inside an ECS task, and compare the identities.The same .NET 10 API reading a file from object storage on each cloud. Only the SDK client changes; both use the platform identity, not keys.
// Program.cs: AWS version. Credentials come from the ECS task role via the default chain.
using Amazon.S3;
using Amazon.S3.Model;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDefaultAWSOptions(builder.Configuration.GetAWSOptions()); // region from config
builder.Services.AddAWSService<IAmazonS3>();
var app = builder.Build();
app.MapGet("/documents/{key}", async (string key, IAmazonS3 s3, CancellationToken ct) =>
{
// No access key anywhere: the SDK asks the container metadata endpoint for temporary credentials.
using var response = await s3.GetObjectAsync(
new GetObjectRequest { BucketName = "orders-documents", Key = key }, ct);
using var buffer = new MemoryStream();
await response.ResponseStream.CopyToAsync(buffer, ct);
return Results.File(buffer.ToArray(), response.Headers.ContentType);
});
app.Run();
// Program.cs: Azure version for comparison. Managed identity via DefaultAzureCredential.
using Azure.Identity;
using Azure.Storage.Blobs;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddSingleton(_ => new BlobServiceClient(
new Uri("https://ordersdocs.blob.core.windows.net"), new DefaultAzureCredential()));
var app = builder.Build();
app.MapGet("/documents/{key}", async (string key, BlobServiceClient blobs, CancellationToken ct) =>
{
var blob = blobs.GetBlobContainerClient("orders-documents").GetBlobClient(key);
var content = await blob.DownloadContentAsync(ct);
return Results.File(content.Value.Content.ToArray(), content.Value.Details.ContentType);
});
app.Run();
// appsettings.json: AWS region (Sydney). Never put access keys here.
{
"AWS": { "Region": "ap-southeast-2" }
}
appsettings.json or environment variables. Why it is wrong: Long-lived keys leak through repos and logs and never expire. Instead: Use an ECS task role, Lambda execution role or EC2 instance profile and let the SDK's default credential chain get temporary credentials."Action": "*" or AdministratorAccess to get past an AccessDenied. Why it is wrong: It breaks least privilege and the ACSC Essential Eight expectations on privileges. Instead: Read the denied action in the error or CloudTrail and grant that action on that resource ARN.The mapping table is the easy part and interviewers know it. The senior signal is knowing where the operating model differs: IAM policies instead of role assignments, accounts instead of subscriptions, monitoring that you assemble, and messaging that is split across SQS, SNS and EventBridge. If you can explain how your .NET code stays identical (default credential chain, OpenTelemetry, containers) while the platform glue changes, you show that you can work on either cloud.
| Azure habit | AWS choice | When it fits | Watch out for |
|---|---|---|---|
| App Service | ECS on Fargate | Containerised APIs, steady traffic | More setup (ALB, task definitions) |
| App Service | App Runner | Small services, minimal ops | Fewer networking and scaling knobs |
| Azure SQL | RDS for SQL Server | Existing T-SQL, EF Core SQL Server provider | Licence cost; Multi-AZ doubles it |
| Service Bus | SQS + SNS | Simple queues and fan-out | No sessions; FIFO has throughput limits |
| App Insights | CloudWatch + X-Ray / OTel | Any | You build dashboards and alerts yourself |
I choose by how much platform the team wants to run:
The trade-off is control versus operations: each step towards AKS gives more control and more work. I start with the simplest option that meets the requirements and move only when I hit a concrete limit.
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.
Managed identity gives the app an Entra ID identity that Azure manages, so there is no secret to store or rotate. In code, Azure.Identity gets tokens: DefaultAzureCredential tries managed identity in Azure and the developer's az login or Visual Studio sign-in locally. Then:
AddAzureKeyVault.BlobServiceClient with the credential.CREATE USER [app-name] FROM EXTERNAL PROVIDER, add it to database roles, and use Authentication=Active Directory Default in the connection string.Use a user-assigned identity when several apps share access or it must survive redeploys. The trade-off is setup effort in RBAC and SQL users in exchange for no secrets at all.
Last updated 23 Nov 2026.