Learn Azure · Part 2 · Basics
Deploy your first web app
Azure App Service, quota limits, Cloud Shell and clean-up
VGViki Gandhi · vikigandhi.com/blog
1 / 13
By the end of this session
- How App Service plans and web apps fit together
- A running web app at your own azurewebsites.net address
- Your own code deployed from Cloud Shell
- Everything deleted again, for a few cents in total
2 / 13
Two things you create, not one
| App Service plan | Server capacity you pay for: size, region, OS | Renting a kitchen |
|---|---|---|
| Web app | Your application, running on the plan | The restaurant using it |
3 / 13
Watch the pricing plan
- Free F1: $0, for learning
- Basic B1: about $12.41 a month, billed hourly
- Premium: $53+ a month, for production
4 / 13
Remember
The default is not the cheapest
After upgrading, the form pre-selected Premium V3 at about $56 a month. Always check the pricing plan before you select Create.
5 / 13
When Azure says no
- New trial subscriptions start with an App Service quota of 0
- Even the free F1 plan is blocked
- Another region doesn't help
6 / 13
Getting past the quota
- 1. Upgrade to pay-as-you-go
- 2. Request B1 VMs = 1 in your region
- 3. If declined, open a free support request
7 / 13
Your new web app
- Node 24 LTS on Linux, East US
- Plan asp-learnazure-dev-eus, B1
- Default domain ends in .azurewebsites.net
8 / 13
Deploy from Cloud Shell
- server.js listens on process.env.PORT
- package.json has a start script
- zip, then az webapp deploy --type zip
9 / 13
Live on the internet
- Refresh the default domain
- If it fails: az webapp log tail
10 / 13
Remember
Clean up so you only pay cents
A plan bills by the hour whether anyone visits or not. az webapp delete removes the app, and the plan with it when it was the last app. Keep the empty resource group for next time.
11 / 13
Quick check
- Delete the app but keep the plan. Still paying?
- "Current Limit (F1 VMs): 0". Will another region fix it?
- Works on port 3000 locally, errors on Azure. First check?
- Which pricing plan does the form choose by default?
Answers are in the post.
12 / 13
Up next
Next: storage accounts, blobs and access keys
Store files in Azure, find the cheapest options, and learn why you should almost never hand out an access key.
vikigandhi.com/blog · Learn Azure
13 / 13