Tag not monitored by Microsoft.
Hello Anson Mathew it looks like the ~$4/day you’re seeing is simply the cost of keeping a provisioned Flexible Server up and running—even if you haven’t hit it with any queries. Azure Database for PostgreSQL Flexible Server bills you by the hour for the vCores and RAM you reserve plus the storage (and backups) you’ve allocated, regardless of load. Here’s what’s going on and how you can shrink that daily bill:
You’ve provisioned compute (vCores + memory)
- Flexible Server currently only supports provisioned compute tiers, so you pay for the compute capacity 24 × 7, even when idle.
- The smallest configuration (1 vCore, smallest memory) in your region is what yields that ~$4/day number.
- Storage is billed per GB‐hour and your backup retention (automated daily backups) adds to that. Deploying a JAR or other files doesn’t incur a separate “app” charge - Any code or artifacts you upload simply use storage and I/O. There’s no standalone “jar‐service” fee.
How to cut your costs
- Scale down your server tier • Drop to the smallest vCore count and minimal storage you actually need.
- Turn the server off when you don’t need it • In the portal you can Stop the Flexible Server—this deallocates compute so you only pay for storage (you’ll still pay storage & backups but you’ll save the compute portion).
- Consider the serverless tier (preview) or single-server options with auto-pause • Serverless tiers only bill you for actual compute usage and storage; if you go idle long enough it auto-pauses.
- Delete the server when you’re really not using it • If this is strictly for experimentation, tear it down and recreate when needed.
Follow-up questions to nail down your optimum savings
- Which region, compute tier (vCores + RAM), and storage size did you provision?
- What’s your configured backup retention period?
- Do you need the server running 24×7, or could you stop it evenings/weekends?
- Would a serverless compute tier (pay-per-usage + auto-pause) fit your minimal-usage scenario?
Reference docs
- Stop/Delete Flexible Server: https://docs.microsoft.com/azure/postgresql/flexible-server/how-to-stop-start-server
- Compute + storage pricing: https://azure.microsoft.com/pricing/details/postgresql/flexible/
- Cost analysis in Azure Cost Management: https://docs.microsoft.com/azure/cost-management-billing/costs/quick-acm-cost-analysis
- Overview of serverless (PostgreSQL preview): https://docs.microsoft.com/azure/postgresql/flexible-server/concepts-serverless
Hope this helps you understand the cost drivers and some levers to lower that $4/day! Let me know if you need any more details.