
Cloud
Learning Level
Azure App Service is a fully managed platform for building and hosting web apps, mobile backends, and RESTful APIs.
By the end of this lesson, you'll understand:
# 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"# Configure git deployment
az webapp deployment source config-zip \
--resource-group myResourceGroup \
--name myUniqueAppName \
--src myapp.zip# Create web app with Docker
az webapp create \
--resource-group myResourceGroup \
--plan myAppServicePlan \
--name myUniqueAppName \
--deployment-container-image-name myregistry.azurecr.io/myapp:latestNode.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}`);
});# 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# Add custom domain
az webapp config hostname add \
--resource-group myResourceGroup \
--webapp-name myUniqueAppName \
--hostname mycompany.comLearn about Azure Functions for serverless workloads, or explore deployment automation.
Resources
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