What is Microsoft Azure?
Microsoft Azure is a cloud computing platform that lets you build, deploy, and manage applications using Microsoft’s global data centers instead of your local machine.
In simple terms 👇
👉 You don’t need to buy servers
👉 You don’t worry about infrastructure
👉 You pay only for what you use
It supports:
- Web apps
- APIs
- Databases
- AI/ML
- DevOps pipelines
- Virtual machines
Step 1: Create Azure Account
👉 Go to: https://azure.microsoft.com
👉 Sign up using Microsoft account
💡 You’ll get:
- Free credits (~$200)
- Free services (limited usage)
Main sections:
- Dashboard → Your resources
- Resource Groups → Folder for resources
- App Services → Web hosting
- Virtual Machines → Servers
- Storage Accounts → File storage
Step 3: Create First Resource (Web App)
👉 Follow this:
- Go to App Services
- Click Create
-
Fill details:
- Subscription
- Resource Group
- App Name
- Runtime (e.g. .NET, Node.js)
- Click Deploy
💡 Done! Your app is live 🌍
Step 4: Resource Group Concept
👉 Think of it like a folder:
Example:
Project: StudentApp
├── Web App
├── Database
├── StorageStep 5: Deploy Your Application
Option 1: GitHub Deployment
- Connect Azure with GitHub repo
- Auto deploy on push
Option 2: Visual Studio
- Right click project → Publish → Azure
Option 3: ZIP Deployment
- Upload project files
Step 6: Azure Virtual Machine (VM)Create VM:
- Go to Virtual Machines
- Click Create
- Choose:
- OS (Windows/Linux)
- Size (RAM/CPU
- Connect using RDP
tep 8: Azure SQL Database
👉 Managed database service
Features:
- Auto backup
- High security
- Scalable
🔹 Step 9: Networking Basics
- Virtual Network (VNet)
- Subnet
- IP address
- Firewall rules
🔹 Step 10: Azure DevOps
👉 CI/CD pipeline
Tools:
- Repos
- Pipelines
- Boards
PipelineStep 1: Create GitHub Repository
Go to:
Create Repository
- Click New Repository
- Enter repository name
- Select Public or Private
- Click Create Repository
Step 2: Push Your Project to GitHub
Open terminal or Git Bash in your project folder.
Initialize Git
git initAdd Files
git add .Commit
git commit -m "Initial commit"Connect GitHub Repository
git remote add origin https://github.com/USERNAME/REPOSITORY.gitPush Code
git branch -M main
git push -u origin mainNow your project is uploaded to GitHub.
Step 3: Login to Azure Portal
Open:
Login with your Microsoft account.
Step 4: Create App Service in Azure
Search
Search:
App ServicesClick
Create → Web AppStep 5: Fill Web App Details
Basic Information
Option Example Subscription Your Azure Subscription Resource Group Create New Name mywebapp123 Publish Code Runtime Stack ASP.NET Core / Node / Python Region Central India OS Windows/Linux Pricing Plan Free F1 Click Next
Step 6: Connect GitHub During Deployment
Azure will ask:
Continuous DeploymentSelect:
EnableStep 7: Authorize GitHub
Azure redirects to GitHub.
Click:
Authorize AzureGive permission.
Step 8: Select Repository
Choose:
Option Example Organization Your GitHub Username Repository Your Project Repo Branch main Step 9: Azure Creates GitHub Actions
Azure automatically creates:
.github/workflows/This is CI/CD pipeline automation.
Whenever you push code:
- GitHub builds project
- Azure deploys automatically
Step 10: Review + Create
Click:
Review + CreateThen:
CreateDeployment starts.
Step 11: Open Live Website
After deployment:
Go to:
Overview → Default DomainExample:
https://mywebapp123.azurewebsites.netYour app is live.
Step 12: Auto Deployment Testing
Now make code changes.
Example:
git add .
git commit -m "Updated homepage"
git pushGitHub Actions automatically deploys to Azure.
Step 13: Monitor Deployment
In GitHub:
Go to:
Actions TabYou can see:
- Build logs
- Deployment logs
- Errors
ASP.NET Core Special Setup
If you are deploying ASP.NET Core:
Publish Profile Method
Sometimes Azure deployment fails.
Then use:
Get Publish Profilefrom Azure App Service.
GitHub Actions Example for ASP.NET Core
Azure generates YAML automatically like this:
name: Build and deploy ASP.NET Core app
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --configuration Release
- name: Publish
run: dotnet publish -c Release -o publish
- name: Deploy
uses: azure/webapps-deploy@v2Common Errors & Solutions
1. 403 Forbidden
Solution
- Restart App Service
- Re-download publish profile
- Check deployment credentials
2. Build Failed
Solution
Check:
GitHub → Actions → LogsUsually:
- Missing packages
- Wrong .NET version
- Wrong startup command
3. Node Modules Missing
Solution
Add:
npm installinside workflow.
Best Practice Architecture
Local Machine
↓
GitHub Repository
↓
GitHub Actions
↓
Azure App Service
↓
Live WebsiteRecommended Azure Services


0 Comments
POST Answer of Questions and ASK to Doubt