azurerm_linux_virtual_machine_scale_set
- update error
#7957
Labels
bug
service/vmss
Virtual Machine Scale Sets
upstream/microsoft
Indicates that there's an upstream issue blocking this issue/PR
Milestone
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_linux_virtual_machine_scale_set
azurerm_windows_virtual_machine_scale_set
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
The VMSS successfully updated
Actual Behavior
Got an error complaining
imageReference
isnull
Steps to Reproduce
terraform apply
with the config above but thedata_disk
block removed - the VMSS should be successfully provisionedterraform apply
again with the config above withdata_disk
block restored - service throws an error at youImportant Factoids
I believe this should be an Azure API bug - in some circumstances, the API is expected in a PATCH request, even though you are not willing to change the image reference, you will have to specify an image reference.
But a workaround on the provider side is also valid - just always fill in the image reference in the update callback
References
The text was updated successfully, but these errors were encountered: