Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hello @ram doig ,
Thank you for submitting your question on Microsoft Q&A.
When you create an App Service (Web App on Linux) and add a MySQL database, you are actually provisioning two separate resources. Each resource has its own pricing model.
- App Service Plan: This is the compute resource that runs your web application.
- Azure Database for MySQL: This is a managed database service with its own compute, storage, and backup costs.
The estimated price shown during setup (e.g., $13.14/month for Basic B1) applies only to the App Service Plan, not the database.
You will be paying for:
- App Service Plan (compute for your Web App)
- Azure Database for MySQL (compute + storage + backup)
- Optional costs (bandwidth, monitoring, etc.)
App Service Plan (Compute for your Web App) This is the server hosting cost for your web application.
- The App Service Plan determines how much CPU, memory, and scaling capacity your app gets.
- You’re billed for the compute resources (like virtual machine time) — not per app.
- Multiple web apps can share the same App Service Plan if they run in the same region and pricing tier.
Azure Database for MySQL (Compute + Storage + Backup) This is the managed database cost where your data is stored.
- Compute: The virtual cores (vCores) or compute units that handle your database queries.
- Storage: The disk space your database data and logs occupy.
- Backup: Azure automatically takes backups; storage for these backups is also billed separately, depending on retention settings.
Optional Costs (Bandwidth, Monitoring, etc.) These are additional or usage-based charges that may apply
- Bandwidth (Data Transfer): Outbound data from Azure to the internet or other regions.
- Monitoring & Logs: If you enable Application Insights or diagnostic logs for deeper visibility, those services may have their own data retention or ingestion costs.
- Networking: If you use private endpoints, virtual networks, or custom domains with SSL, there may be minor extra charges.
Costing details are given here:
App Service Plan Cost:
If you select Basic (B1) on Linux: Price: $13.14/month, Specs: 1 Core, 1.75 GB RAM, This covers hosting your web app only no database.
Select MySQL Database Tier:
Azure Database for MySQL offers Flexible Server with three tiers Burstable (lowest cost, good for dev/test), General Purpose (recommended for production), Memory Optimized (high performance)
Example pricing (West US region):
Burstable B1ms (1 vCore, 32 GB storage): ~$30/month, General Purpose Standard_D2ds_v4 (2 vCore, 32 GB storage): ~$124.83/month, Memory Optimized: Higher cost
Add Storage & Backup Costs:
Storage: $0.10 per GB/month, Backup: $0.20 per GB/month (retention depends on configuration)
Calculate Total Estimated Cost:
App Service (Basic B1): $13.14/month
MySQL General Purpose (2 vCore): $124.83/month
Storage (32 GB): $3.20/month
Backup (32 GB): $6.40/month
Total: ≈ $147.57/month
Reference :
https://learn.microsoft.com/en-us/azure/static-web-apps/plans?source=recommendations
https://azure.microsoft.com/en-us/pricing/details/mysql/
Kindly let us know if the above comment helps or you need further assistance on this issue.
Please "upvote" if the information helped you. This will help us and others in the community as well.