diff --git a/pools/resource_instance_pool.go b/pools/resource_instance_pool.go index a96c455f4f..b748d3cb94 100644 --- a/pools/resource_instance_pool.go +++ b/pools/resource_instance_pool.go @@ -197,6 +197,11 @@ func ResourceInstancePool() common.Resource { clusters.AzureAvailabilityOnDemand, }, false) } + if v, err := common.SchemaPath(s, "azure_attributes", "spot_bid_max_price"); err == nil { + v.DiffSuppressFunc = func(k, oldValue, newValue string, d *schema.ResourceData) bool { + return oldValue != "0" && newValue == "0" + } + } if v, err := common.SchemaPath(s, "gcp_attributes", "gcp_availability"); err == nil { v.Default = clusters.GcpAvailabilityOnDemand v.ValidateFunc = validation.StringInSlice([]string{