Skip to main content

Cloud and Security Tutorials for .NET: Azure, AWS, GCP

Last updated: October 6, 2026

Every cloud, infrastructure and security article on this site for .NET developers: Azure, AWS and Google Cloud services from C#, serverless, infrastructure as code, and securing the code and the pipeline. These tutorials have not been re-run on .NET 10 yet; check SDK versions before you copy code. Deploying an ASP.NET Core app (Docker, App Service, AKS, GitHub Actions) lives in the ASP.NET Core guide.

Start here

Your situationRead this
Choosing a cloud for a .NET teamAWS vs Azure vs GCP for .NET
Choosing a serverless platform for C#Azure Functions vs AWS Lambda
Storing uploaded filesAzure Blob Storage (or S3, section 2)
Queues and publish/subscribe between servicesAzure Service Bus (or Pub/Sub, section 3)
Infrastructure as code in C# instead of YAML or HCLPulumi for .NET
Keeping secrets out of config files and source controlCloud security best practices

1. Pick a cloud and run code serverless

2. Store data and files

  • Azure Blob Storage: managed identity, upload from ASP.NET Core, streaming downloads, listing, metadata and SAS URLs.
  • AWS S3: uploads, multipart with TransferUtility, paginated listing, presigned URLs and the SDK v4 null-collection pitfall.
  • Azure Cosmos DB: partition keys, CRUD and error handling, LINQ queries, continuation tokens, ETags, transactional batch and change feed.
  • AWS DynamoDB: the three SDK programming models, mapping a C# class, CRUD, query vs scan and DynamoDB Local.

3. Messaging between services

  • Azure Service Bus: one shared client, sending in batches, processing messages, topics and dead-letter queues.
  • Google Cloud Pub/Sub: topics and subscriptions from C#, PublisherClient, the streaming SubscriberClient and why handlers must be idempotent.

4. Infrastructure as code

Pulumi and the AWS CDK let you write infrastructure in C#; Terraform is the tool most job ads ask for.

  • Pulumi for .NET: how Pulumi works, Output<T>, config and secrets, component resources, unit tests and Pulumi vs Terraform.
  • Terraform for .NET developers: deploying ASP.NET Core to App Service, the same workflow on AWS, state, CI/CD and Terraform vs Bicep vs CloudFormation.
  • AWS CDK and CloudFormation in C#: a first CDK stack, managing stacks with the AWS SDK, removal policies and CDK vs raw templates.

5. Secure the code, the pipeline and the cloud

Code-level topics (SQL injection, password hashing, encryption) are in the C# guide.

  • Cloud security best practices: least privilege, Key Vault, Secrets Manager and Secret Manager from C#, encryption, private endpoints and a checklist.
  • DevSecOps for .NET: SAST in the build, dependency scanning, secret detection, container scanning and a secure pipeline step by step.
  • Zero trust security: the principles, the building blocks and implementing them in ASP.NET Core, including service-to-service calls.
  • Prevent data breaches: a 10-point checklist for developers: secrets, queries, passwords, authorization, input, encryption and logging.
  • Ransomware protection for developers: safe file uploads, no shell commands from input, encryption at rest, integrity monitoring, backups and deserialization.
  • Cybersecurity career roadmap: the security roles that suit developers and a four-phase plan over 12 to 18 months.

Related guides

Calling AI services from these clouds? See the AI in .NET guide.

Comments

Popular posts from this blog

.NET MAUI Tutorial 2026: Build Cross-Platform Apps in C#

Learn .NET MAUI in 2026 to build iOS, Android, Windows & Mac apps from one C# codebase. Start this cross-platform tutorial with code examples today. .NET MAUI (Multi-platform App UI) is Microsoft's framework for building native iOS, Android, Windows, and macOS apps from a single C# codebase . If you've ever wanted to ship a mobile app without learning Swift, Kotlin, and Win32 separately, this .NET MAUI tutorial for 2026 is your starting point. In this guide you'll learn what .NET MAUI is, why it matters for cross-platform app development in C#, and how to build your first working app — with runnable code examples and the best practices senior engineers actually use in production. What Is .NET MAUI and Why Use It in 2026? .NET MAUI is the evolution of Xamarin.Forms, fully integrated into the modern .NET runtime. With one project and one language — C# — you target four platforms. The framework compiles to native UI controls on each device, so a button on iOS...

Angular 14 : 404 error during refresh page after deployment

In this article, We will learn how to solve 404 file or directory not found angular error in production.  Refresh browser angular 404 file or directory not found error You have built an Angular app and created a production build with ng build --prod You deploy it to a production server. Everything works fine until you refresh the page. The app throws The requested URL was not found on this server message (Status code 404 not found). It appears that angular routing not working on the production server when you refresh the page. The error appears on the following scenarios When you type the URL directly in the address bar. When you refresh the page The error appears on all the pages except the root page.   Reason for the requested URL was not found on this server error In a Multi-page web application, every time the application needs to display a page it has to send a request to the web server. You can do that by either typing the URL in the address bar, clicking on the Me...

Angular 14 CRUD Operation with Web API .Net 6.0

How to Perform CRUD Operation Using Angular 14 In this article, we will learn the angular crud (create, read, update, delete) tutorial with ASP.NET Core 6 web API. We will use the SQL Server database and responsive user interface for our Web app, we will use the Bootstrap 5. Let's start step by step. Step 1 - Create Database and Web API First we need to create Employee database in SQL Server and web API to communicate with database. so you can use my previous article CRUD operations in web API using net 6.0 to create web API step by step. As you can see, after creating all the required API and database, our API creation part is completed. Now we have to do the angular part like installing angular CLI, creating angular 14 project, command for building and running angular application...etc. Step 2 - Install Angular CLI Now we have to install angular CLI into our system. If you have already installed angular CLI into your system then skip this step.  To install angular CLI ope...