hi all, can i ask you if Infracost is supporting ...
# help
s
hi all, can i ask you if Infracost is supporting spot pricing calculation for Azure ? i tried with a slightly modified code from your repo to calculate the infra costs for Azure spot's but the response is for on-demand flavors Thank you in advance !
Copy code
resource "azurerm_linux_virtual_machine" "my_vm" {
  name                  = "basic_a2"
  resource_group_name   = "fake_resource_group"
  location              = "eastus"

  size                  = "Standard_D2as_v4"
  admin_username        = "fakeuser"
  admin_password        = "fakepass"

  priority              = "Spot"
  eviction_policy       = "Deallocate"
output :
Copy code
"costComponents":[
                      {
                         "name":"Instance usage (Linux, pay as you go, Standard_D2as_v4)",
                         "unit":"hours",
                         "hourlyQuantity":"1",
                         "monthlyQuantity":"730",
                         "price":"0.096",
                         "hourlyCost":"0.096",
                         "monthlyCost":"70.08"
                      }
l
Hi @some-island-27936, Infracost doesn’t support spot prices for Azure yet. We have a related issue for it here: https://github.com/infracost/infracost/issues/1449
s
hi @little-author-61621 thank you for you quick reply, i ll stay tuned. Infracost is great !