custom_data forces VM recreation every time even if the data is the same #6756
Labels
service/virtual-machine
upstream/terraform
This issue is blocked on an upstream issue within Terraform (Terraform Core/CLI, The Plugin SDK etc)
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_linux_virtual_machine
Terraform Configuration Files
Expected Behavior
Terraform should check if
custom_data
base64 value was changed and mark the VM for redeployment only if it changed.Actual Behavior
Every
terraform apply
, the VM is marked for recreation even if the base64 value ofcustom_data
is the same every time. When removingcustom_data
line, the VM is not recreated.Steps to Reproduce
terraform apply
Important Factoids
References
Similar issue but this solution is not working although it was supposed to be fixed in version 2.0:
The text was updated successfully, but these errors were encountered: