Stop wrestling with deployment! This is the most comprehensive, step-by-step guide you'll find for deploying a production-ready ASP.NET Core application to a Linux environment on Azure Virtual Machine (VM). We don't just get it running—we make it secure and reliable.
In this tutorial, you will master the end-to-end process:
1. Azure VM Setup: Creating and configuring an Ubuntu server instance and opening the necessary NSG (Network Security Group) ports.
2. Prerequisites: Installing the latest .NET Runtime on the Ubuntu VM.
3. App Transfer: Publishing your ASP.NET Core application and securely transferring files via SSH/SCP.
4. The NGINX Reverse Proxy: Configuring NGINX as a reverse proxy to forward external requests (Port 80/443) to the internal Kestrel web server (Port 5000/5001).
5. Production-Ready: Creating a systemd service to ensure your application runs as a daemon, restarts automatically on failure, and is accessible globally.
6. Security Focus: Implementing basic security measures for a robust deployment.
If you're deploying .NET apps to the cloud using Linux and NGINX, this video is your blueprint.
Chapters:
00:00 Introduction
00:30 What's the Virtual
01:44 Configure Virtual Machine
13:40 Network Settings and Network Security Group (NSG)
14:05 Connect Virtual Machine to Shell Terminal
15:40 Update the package list
16:20 Add Microsoft Package Repository for .NET
17:20 Install .NET Runtime or SDK
18:15 Install Nginx Web Server
18:55 Install and Configure UFW Firewall
19:10 Prepare Folder for Web App
20:15 Upload Published Files to the VM
25:20 Move App to Web Directory
26:00 Create Systemd Service for ASP.NET Core
27:25 Start and Check Service Status
28:00 Configure Nginx Reverse Proxy
30:40 Configure Firewall Permissions
31:40 Testing our site
Ubuntu Command Lines: https://www.f2bstack.com/blog/dotnet-...
Azure CI/CD Pipeline: • CI/CD 2025: Deploy ASP.NET Core to Azure u...
Next Video will be on Azure Load Balancer!
👨💻 About this channel:
Learn Full Stack Development from scratch – Frontend, Backend, APIs, ASP.NET Core, Angular, React, SQL, Entity Framework, Clean Architecture & more.
📝 Helpful Links:
• Visit our website: https://f2bstack.com
• Subscribe: / @frontendtobackendwithrohan
• LinkedIn: / rohankumawat
• Portfolio: https://rrohankumawat.github.io
• Instagram: / f2bwithrohan
• X: https://x.com/f2bwithrohan