azurerm_storage_share cost estimation
A managed SMB/NFS file share billed by tier and capacity. A 100 GiB standard share is ~$6/month; Premium provisions capacity at a higher rate.
An azurerm_storage_share is an Azure Files share — fully-managed SMB/NFS file storage you can mount from cloud VMs and on-premises. Cost depends on the tier. Standard tiers (Transaction Optimized, Hot, Cool) bill for used capacity (~$0.06/GiB-month for Transaction Optimized) plus per-transaction charges. The Premium tier provisions capacity up front on SSD (~$0.16/GiB-month) for low-latency, high-IOPS workloads, billed on the provisioned quota regardless of use. A 100 GiB standard share is ~$6/month.
The key decision is tier, and it's a classic storage trade: Standard tiers are cheaper per GiB but add transaction charges and have higher latency; Premium is pricier per GiB and provisioned, but delivers consistent performance. Within Standard, Cool lowers storage cost for infrequently-accessed shares at higher transaction cost, mirroring the blob access tiers.
The levers: pick the tier by access pattern (Premium only for latency/IOPS-sensitive workloads; Cool for archival-ish shares), right-size the quota (especially on Premium, where you pay for provisioned capacity), and use snapshots/soft-delete retention judiciously since those add storage.
c3x prices the share from its tier and quota, so the cost — and the Premium-vs-Standard difference — is visible before deployment.
Terraform example
A minimal but realistic configuration that C3X can estimate.
resource "azurerm_storage_share" "files" {
name = "app-files"
storage_account_name = azurerm_storage_account.main.name
quota = 100
access_tier = "TransactionOptimized"
}Pricing dimensions
What you actually pay for when you provision azurerm_storage_share.
| Dimension | Unit | What's being charged |
|---|---|---|
| File share capacity | per GiB-month | Standard tiers bill used capacity (~$0.06/GiB TransactionOptimized) plus transactions; Premium bills provisioned quota on SSD (~$0.16/GiB). $0.06/GiB-month (Standard) → 100 GiB = $6/month; Premium ~$0.16/GiB |
| Transactions | per 10K operations | Standard tiers charge per transaction (read/write/list); Cool costs more per transaction. Premium has no transaction charge. Usage-based. |
Sample C3X output
A 100 GiB standard (Transaction Optimized) file share:
azurerm_storage_share.files
└─ File share capacity (Standard) 100 GiB-month $6.00
Monthly $6.00Optimization tips
Common ways to reduce azurerm_storage_share cost without changing the workload.
Use Premium only for latency/IOPS-sensitive workloads
~60% per GiB vs PremiumPremium provisions SSD capacity at ~$0.16/GiB (billed on quota, used or not) for consistent low-latency, high-IOPS access. For general file shares, Standard tiers at ~$0.06/GiB are far cheaper — reserve Premium for databases-on-files or latency-critical workloads.
Match the Standard tier to access frequency
Tier-dependentTransaction Optimized for write-heavy/active shares, Hot for general, Cool for infrequently-accessed shares (lower storage, higher transaction cost). Like blob tiers, pick by how often you read/write.
Right-size the Premium quota
Per unused provisioned GiB on PremiumPremium bills provisioned quota whether or not it's used. Provision to the working set with headroom, not the maximum — you can grow it later.
Manage snapshot and soft-delete retention
Per GiB-month of retained copiesShare snapshots and soft-delete retention add stored capacity. Keep retention to what recovery actually needs so it doesn't quietly inflate the bill.
FAQ
How is an Azure Files share billed?
By tier and capacity: Standard tiers bill used capacity (~$0.06/GiB-month Transaction Optimized) plus per-transaction charges; Premium bills provisioned SSD quota (~$0.16/GiB-month) with no transaction charge. A 100 GiB standard share is ~$6/month.
Premium or Standard Azure Files?
Premium (provisioned SSD, ~$0.16/GiB) for latency/IOPS-sensitive workloads needing consistent performance; Standard (~$0.06/GiB used, plus transactions) for general file shares. Within Standard, Cool lowers storage cost for infrequently-accessed shares.
How does c3x estimate the cost?
From the share's tier (access_tier) and quota, pricing capacity at the tier rate. Transactions are usage-driven on Standard tiers and modelled separately.
Related resources
Estimate this resource in your own Terraform
Free, open source, no API key. C3X parses your Terraform and shows line-item cost for every resource, including azurerm_storage_share.