Skip to content

Commit bf809e2

Browse files
Add estimated cost section to blog 5.4 (~$23/month)
1 parent 2e19e73 commit bf809e2

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

blogs/series-5-devops-data/5.4-azure-bicep-infrastructure.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ This article is part of the **AngularNetTutorial** series. The full-stack tutori
2626
* **CAF naming convention** — why resources are named `app-talent-api-dev` and not `myapp1`
2727
* **Bicep outputs** — how deployed URLs flow into GitHub Actions workflows
2828
* **`az deployment group create`** — the one command that provisions all eight resources
29+
* **Estimated cost**~$23/month for the full dev stack, and how to reduce it to $0
2930

3031
---
3132

@@ -357,6 +358,39 @@ Navigate to each Web App in the Portal (`portal.azure.com → App Services → a
357358

358359
---
359360

361+
## 💰 Estimated Monthly Cost
362+
363+
All eight resources in the dev environment cost approximately **$23/month** (East US region):
364+
365+
* **App Service Plan B1** (`asp-talent-b1-dev`) — ~$13.14/month
366+
* **Web App — .NET API** (`app-talent-api-dev`) — $0 (included in plan)
367+
* **Web App — IdentityServer STS** (`app-talent-ids-dev`) — $0 (included in plan)
368+
* **Web App — IdentityServer Admin** (`app-talent-admin-dev`) — $0 (included in plan)
369+
* **Static Web App — Angular** (`swa-talent-ui-dev`) — $0 (Free tier)
370+
* **SQL Logical Server** (`sql-talent-dev`) — $0 (no charge for the server)
371+
* **SQL Database — API** (`sqldb-talent-api-dev`) — ~$4.90/month (Basic 5 DTU)
372+
* **SQL Database — IdentityServer** (`sqldb-talent-ids-dev`) — ~$4.90/month (Basic 5 DTU)
373+
374+
**Total: ~$23/month**
375+
376+
**Key cost facts:**
377+
378+
* The B1 App Service Plan covers all three Web Apps — Azure charges per plan, not per app. Separate plans would cost ~$39/month instead of $13.
379+
* Azure Static Web Apps Free tier includes built-in CDN, global distribution, and managed TLS certificates at no cost.
380+
* Both SQL databases share one logical SQL Server — no extra charge for the server itself.
381+
* Always On is enabled on B1 (required to prevent IdentityServer from sleeping) — included in the B1 price.
382+
383+
**To eliminate cost entirely when not in use:**
384+
385+
```bash
386+
# Delete all resources in one command (can be recreated from Bicep in minutes)
387+
az group delete --name rg-talent-dev --yes --no-wait
388+
```
389+
390+
**Visual Studio subscribers:** The monthly Azure credit (~$150/month for Visual Studio Professional, ~$50/month for Visual Studio Community) covers this entire stack with budget to spare.
391+
392+
---
393+
360394
## 🔑 Key Design Decisions
361395

362396
**One shared App Service Plan for all three .NET apps.** Azure charges at the App Service Plan level, not per Web App. Running three Web Apps (API, IdentityServer STS, and IdentityServer Admin) on one B1 plan costs the same as running one. Separate plans would triple the compute cost for no benefit at this scale.

0 commit comments

Comments
 (0)