https://infracost.io logo
#help
Title
# help
m

mysterious-farmer-38954

11/18/2023, 3:38 PM
Hello all! I'm wondering why the azurerm_virtual_wan shows up as a 'free product' when on the Azure Pricing calculator, it shows up as quite an expensive resource:
w

white-airport-8778

11/18/2023, 5:20 PM
Hi @mysterious-farmer-38954, https://github.com/infracost/infracost/issues/910 explains how the prices are modeled in that service. Does that make sense to you? I’ve not used that specific Azure service before myself
m

mysterious-farmer-38954

11/18/2023, 5:38 PM
Unfortunately I don't understand this part of the github issue:
• If
type
is
Basic
then we should treat it as a free resource
On the Azure pricing calculator there is no 'basic' level?
Here's a link to the pricing calculator: https://azure.microsoft.com/en-us/pricing/calculator/
w

white-airport-8778

11/18/2023, 6:11 PM
I think the
basic
refers to the SKU in https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_hub What is your azurerm_virtual_hub.sku set to? My guess is that if it’s not set, it default to basic but unless we deploy that resource it’s hard to tell what TF does https://learn.microsoft.com/en-us/azure/virtual-wan/pricing-concepts#fee mentions “There’s no base fee or data processing fee for hubs in a Basic virtual WAN” and https://azure.microsoft.com/en-us/pricing/details/virtual-wan/ only shows prices for Standard SKU.
m

mysterious-farmer-38954

11/18/2023, 6:22 PM
So is this an issue with the azure pricing calculator, instead of an issue with Infracost?
i.e the 'Basic' version isn't selectable on the pricing page
Ok, so if I specify the Virtual Hub as sku = "Standard", then the price is correct. It looks like defining type = "Standard" on a vWAN doesn't affect the price at all.
w

white-airport-8778

11/18/2023, 6:34 PM
Indeed we’ve seen issues with the Azure price calculator before, sometimes bugs, sometimes just confusions 🙂 In this case, I think their price calculator just assumes “Standard” is being used, and this page says “There’s a base fee for the hub, which is priced at $0.25/hr” for Standard, which matches what the calculator and the Azure pricing page shows. But if you’re using
sku=basic
in Terraform then “There’s no base fee or data processing fee for hubs in a Basic virtual WAN”
m

mysterious-farmer-38954

11/18/2023, 6:36 PM
Ah yeah it looks like they dont list free resources on their pricing calculator. That makes alot more sense. Thanks for your help 🙂
vHubs are so expensive 😞
w

white-airport-8778

11/18/2023, 6:43 PM
Yup! We just spent a good hour trying to understand one service’s prices… now multiply that by thousands of engineers in large companies and you can see why cloud costs mushroom over time, cloud pricing is complicated… infracost exists to make it simple so we can keep shipping code instead of faffing bout with price calculators and spreadsheets
m

mysterious-farmer-38954

11/18/2023, 7:15 PM
I'm considering proposing infracost to higher ups in my company - it looks really good. Is the free tier allowed for business use? We are a not-for-profit
w

white-airport-8778

11/18/2023, 7:25 PM
Yep, up to 1000 runs per month is free on Infracost CI/CD (the PR comments). Infracost Cloud has a 2 week free trial, you can email hello@infracost.io if you need an extension - or you can buy 1 seat online self-service if you want to test it for a few months 🙂
m

mysterious-farmer-38954

11/18/2023, 8:11 PM
Perfect thanks for all your help 🙂
3 Views