Hello Gerald Tan
Thank you for your question!
I understand that You're experiencing a persistent $8/day cost on an Azure Storage account that should be largely unused, with evidence pointing to failed authentication attempts and "failed provisioned" NSG Flow Logs. Let's get to the bottom of this.
Please be informed that Storage accounts incur costs for operations like read, write, list, and other API calls, even if they fail due to IP whitelisting or authentication issues. Failed authentication attempts (e.g., from unauthorized IPs) can still generate billable transactions.
- navigate to Cost Management > Cost Analysis for the storage account and break down costs by:
- Operation type (e.g., CreateBlockBlob, GetBlob, ListBlobs).
- API name to identify specific calls.
- Response type (e.g., ClientOtherError or AuthorizationError for failed requests).
- Look for spikes in transaction counts, especially for failed operations, as these may indicate repeated unauthorized access attempts.
If failed operations were somehow attempting data transfer that partially succeeded before failing, or if the failure itself involved some amount of data processing or networking, minimal egress charges could apply, but this is less likely to be the primary driver of $8/day on an unused account.
Verify Log Volume: In the storage account,
- navigate to Containers > insights-logs-networksecuritygroupflowevent and check the size of stored blobs. Large volumes of flow log data could explain the cost spike.
- NSG Flow Logs have a retention policy (default is 0, meaning indefinite storage). If logs were written before deletion, they may still reside in the account, incurring storage costs. Set a retention period (e.g., 30 days) or manually delete old logs to reduce costs.
Recommendations:
- If data is rarely accessed, switch back to Cool or Archive tiers to reduce storage costs. Use Lifecycle Management policies to automatically transition old data to cheaper tiers.
- Delete any residual flow log data in the insights-logs-networksecuritygroupflowevent container and set a short retention period to prevent future buildup.
- Monitor Costs Daily: Use Cost Management > Budgets to set alerts for unexpected cost spikes and track progress after implementing changes.
References:
You may utilize the Pricing Calculator to determine the areas where costs are rising:
https://azure.microsoft.com/en-in/pricing/calculator/?msockid=2fc42ae332836ffe36b63f1b336b6e5a
Hope the above answer helps! Please let us know do you have any further queries.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.