Ojasa Mirai

Ojasa Mirai

Cloud

Loading...

Learning Level

🟢 Beginner🔵 Advanced
🔧 Azure Account Setup⚙️ Azure Compute Overview🖥️ Virtual Machines🎯 App Service Deployment⚡ Azure Functions📁 Blob Storage🗄️ Azure SQL Database📊 Cosmos DB📊 Azure Monitoring🔑 Azure Identity & Access📈 Azure Scaling & Load Balancing🐳 Azure Containers & AKS🎯 Azure Static Web Apps💰 Azure Cost Optimization
Cloud/Azure Deployment/App Service Deployment

🎯 App Service Deployment

Introduction

Azure App Service is a fully managed platform for building and hosting web apps, mobile backends, and RESTful APIs.

Key Learning Outcomes

By the end of this lesson, you'll understand:

  • Creating App Service plans and web apps
  • Deploying applications (Git, ZIP, Docker)
  • Configuring scaling and performance
  • Managing custom domains and SSL
  • Monitoring and logging
  • Environment variables and configuration

Creating App Service

# Create App Service plan
az appservice plan create \
  --name myAppServicePlan \
  --resource-group myResourceGroup \
  --sku B1 \
  --is-linux

# Create web app
az webapp create \
  --resource-group myResourceGroup \
  --plan myAppServicePlan \
  --name myUniqueAppName \
  --runtime "node|18-lts"

Deploying Applications

Deploy from Git

# Configure git deployment
az webapp deployment source config-zip \
  --resource-group myResourceGroup \
  --name myUniqueAppName \
  --src myapp.zip

Deploy from Docker

# Create web app with Docker
az webapp create \
  --resource-group myResourceGroup \
  --plan myAppServicePlan \
  --name myUniqueAppName \
  --deployment-container-image-name myregistry.azurecr.io/myapp:latest

Configuration

Node.js Express App:

const express = require('express');
const app = express();

const PORT = process.env.PORT || 3000;

app.get('/', (req, res) => {
  res.send('Hello from Azure App Service!');
});

app.listen(PORT, () => {
  console.log(`Server running on port ${PORT}`);
});

Scaling

# Set up autoscale
az monitor autoscale create \
  --resource-group myResourceGroup \
  --resource myUniqueAppName \
  --resource-type "Microsoft.Web/sites" \
  --min-count 1 \
  --max-count 10 \
  --count 2

Custom Domain and SSL

# Add custom domain
az webapp config hostname add \
  --resource-group myResourceGroup \
  --webapp-name myUniqueAppName \
  --hostname mycompany.com

Key Takeaways

  • **App Service** is a managed platform for web apps
  • **Automatic scaling** handles variable load
  • **Multiple deployment options** (Git, Docker, ZIP)
  • **Custom domains** and SSL are built-in
  • **Monitoring** provides performance insights

Next Steps

Learn about Azure Functions for serverless workloads, or explore deployment automation.


Resources

Python Docs

Ojasa Mirai

Master AI-powered development skills through structured learning, real projects, and verified credentials. Whether you're upskilling your team or launching your career, we deliver the skills companies actually need.

Learn Deep • Build Real • Verify Skills • Launch Forward

Courses

PythonFastapiReactJSCloud

© 2026 Ojasa Mirai. All rights reserved.

TwitterGitHubLinkedIn