Open Matthijsy opened 1 year ago
Hi @Matthijsy, thanks for raising this issue. Current behavior is by design and not a bug. But we could definitly do better on this. I think skipping the refresh could be a solution. Welcome more discussion on this topic.
Thanks for your response @liuwuliuyun, and sorry for my late response. I understand that it is design by terraform, however it would be great if we could have a workaround/solution for this case. It would be great if we could skip the refresh for just this resource, since I don't want to skip the refresh for all my resources. Are there any existing methods to achieve this? Or could we achieve this within this project?
Would be great to find some solutions for this!
I'm experiencing the same behaviour. Any workaround/solution?
Unfortunately, I'm seeing the same. And in our case, we've opted to have a fully replicated Dev, QA, and Production environments. And as a result, the Dev and QA might not see the same kind of utilization and they're almost ALWAYS down when we're trying to perform a terraform update.
While I could easily just add to our GitHub Actions flow to automatically perform a check and a start using the az
cli, that's not the most ideal.
I'm also finding this somewhat annoying...
Is there an existing issue for this?
Community Note
Terraform Version
1.3.9
AzureRM Provider Version
3.25
Affected Resource(s)/Data Source(s)
azurerm_kusto_database
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Either the refresh is skipped, since we cannot read it when the cluster is stopped. Or the cluster is started before refreshing the state. Preferably this is configurable.
Actual Behaviour
When running
terraform plan
with the ADX cluster in a stopped state, the plan fails.Steps to Reproduce
terraform apply
terraform plan
Important Factoids
No response
References
No response