I'm working on an open-source project that needs Azure Table Storage for testing in GitHub pipelines. However, I'm worried about unexpected costs accumulating while I'm on holiday or away from my computer. Is there any way to set a spending limit on the pay-as-you-go subscriptions? I can set up monitoring for costs, but that assumes I will always be available to react to notifications. Am I misunderstanding how the billing works? Essentially, will the service stop once I reach a certain limit, or will it keep charging me? Also, do I really have to pay for storage just to get cost alerts?
5 Answers
Companies often prefer to deal with the aftermath of unexpected bills instead of actively preventing costs. It's definitely a tricky balance to manage in cloud environments.
You've got some helpful tips already, but I’m curious why you’re really worried about the Azure Table Storage costs. Are you using it like a queue? If so, why not switch to a storage queue instead? Also, how do you plan to 'turn it off'? Are you rotating SAS keys or deleting resources? I'm wondering if you're approaching this from the right angle; maybe look at controlling the data feed instead.
Try setting a budget with a cost alert that connects to an action group. You can also use Azure Automation or Logic Apps to automate the cleanup when your budget gets close to the limit. If you can, consider switching to a Visual Studio or Sponsorship subscription since they have better cost controls.
Just keep in mind that Azure isn't designed for hobbyist use. It's a professional-grade platform, so you won’t have the option to add small amounts incrementally like a parking meter. You get charged based on your usage, which could lead you into the red if you're not careful. And yes, it costs to store alerts as well, but that's generally a small part of the overall expenses.
You can set a budget in Azure that triggers a 100% cost alert. Link it to an action group that can shut down or remove your pay-as-you-go resources when the budget's hit. That way, you won't have a surprise bill when you get back.

Agreed! Even large enterprises want to set spending caps. It’s better to face a temporary service outage than to explain a surprise bill to management because of unexpected spikes in usage.