Deploying a Web App with Azure App Service
Azure App Service is a fully-managed PaaS for hosting web apps and APIs, you push your code, Azure handles the servers, scaling, and patching.
az webapp up \
--name kodstigen-demo-app \
--resource-group kodstigen-rg \
--runtime "NODE:20-lts"
az webapp up is a convenience command, it creates an App Service plan and web app if they don't exist yet, then deploys your current folder's code to it in one step.
Key concepts
- An App Service Plan defines the underlying compute (how much CPU/RAM, how many instances), think of it as the "size" of the box your app runs in.
- A Web App is the actual application running on that plan, you can run multiple web apps on one plan.
- Once deployed, your app is reachable at
https://<app-name>.azurewebsites.net.
az webapp log tail --name kodstigen-demo-app --resource-group kodstigen-rg
log tail streams your app's live logs, the first thing to check when a deployment doesn't behave as expected.