An Azure service that provides streamlined full-stack web app development.
The technical behavior described is consistent with how Azure bills execution-based services, but the provided context does not explicitly cover Static Web Apps–hosted Functions or their exact meters. Only the following billing-related points are supported by the context:
- Execution-based meters can drive large cost spikes
The context shows that:
- Azure Functions on consumption plans are billed based on execution counts and execution time, using metrics such as Function Execution Count and Execution Units that map to execution-time meters.
- Invoices and Cost Analysis expose these meters as part of the Compute category and allow drilling down to the meter level.
From the Functions billing documentation:
- Metrics like
OnDemandFunctionExecutionUnitsandAlwaysReadyFunctionExecutionUnitsare converted into GB-seconds and billed as execution time. - These metrics are directly tied to the Execution Time meters for Functions.
This supports that a high volume of function executions (for example, from HTTP-triggered endpoints) can generate significant compute charges under a Functions execution-time meter.
- Cost analysis is the correct way to validate which service and meter caused the spike
The context describes how to:
- Use Cost analysis to identify which services and meters caused unexpected cost increases.
- Group by Meter category and drill into specific services (for example, Log Analytics, Azure Grafana, Microsoft Sentinel) to see which meter drove the spike.
Applied to this scenario, the supported guidance is:
- Use Cost analysis on the subscription and filter to the Static Web App resource.
- Group by Meter category and then by Meter to confirm that the Functions → Standard Execution Time meter is responsible for the spike.
- Unexpected or anomalous charges should be investigated with Cost Management tools and then escalated to support
The context provides a general process for unexpected charges:
- Review the invoice and correlate it with Cost analysis.
- Identify the specific services and meters causing the spike.
- If the cause is still unclear or if there is a billing dispute, create an Azure support request for billing.
The context also notes:
- Azure does not log all user actions; billing is based on resource usage. If logging wasn’t enabled at the time of the spike, it might not be possible to reconstruct the exact traffic pattern.
- When unexpected costs are identified and cannot be fully explained or controlled via configuration alone, the next step is to open a billing/support case.
- Billing disputes, retroactive adjustments, and credits must be handled by Azure Support
The context includes multiple Q&A examples where:
- Users experienced unexpected or retroactive billing increases.
- Moderators consistently directed them to create billing support requests via the Azure portal.
- Billing support is explicitly stated as free, and support engineers can review and address billing disputes.
From these examples, the supported guidance is:
- For any request involving credits, refunds, or goodwill adjustments (including cases where configuration misunderstandings caused unexpected usage), the only supported path is to open a Billing support request in the Azure portal.
- Community forums and documentation cannot grant or commit to credits; only the billing support team can review the account, usage, and policies and decide on adjustments.
- How to proceed in this case, based on supported guidance
Within the limits of the context, the following steps are supported: - Validate the meter and service in Cost analysis
- In the Azure portal, open Cost Management + Billing.
- Use Cost analysis for the subscription.
- Filter to the Static Web App resource and group by Meter category and Meter to confirm that Functions → Standard Execution Time is the primary driver of the May compute charges.
- Check for anomalies and confirm that the spike is limited to the period in question
- Use daily cost views (similar to the Log Analytics example) to identify the exact dates where the spike occurred.
- Confirm that after the configuration changes are deployed, daily costs for that meter drop or disappear.
- Enable or review logging/metrics for future validation
- Ensure that appropriate logging and metrics are enabled for Functions and Static Web Apps so that future spikes can be correlated with traffic and execution patterns.
- Open a billing support request for review/credits
- Create a Billing support request from the Azure portal.
- Provide:
- Subscription ID.
- The Static Web App resource name.
- The time range and invoice details (April vs. May charges).
- Screenshots or exports from Cost analysis showing the Functions → Standard Execution Time meter as the cause.
- A description of the configuration (routes and
api_location) and the corrective changes already applied.
- Request a review of the unexpected usage and ask whether any adjustment or credit is possible.
The context does not state any general policy or guarantee that credits will be granted for misconfigurations, so any decision about credits or goodwill adjustments must come from the billing support team after reviewing the specific subscription and usage history.
References:
- Estimating consumption-based costs
- Investigate unexpected cost increases in a Log Analytics workspace
- Identify the services that cause unexpected costs
- Understand the terms in your Azure usage and charges file
- Identify anomalies and unexpected changes in cost
- Microsoft Discovery billing overview
- Understand terms on your Microsoft Azure invoice
- Billing and cost management for SaaS workloads on Azure
- Retroactive billing update inflated 20-day charges from ~$210 to $1,683 CAD without prior notification - Microsoft Q&A
- Fraud Charges - Microsoft Q&A
- investigate a billing charge - Microsoft Q&A