-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows_virtual_machine_scale_set SKU(Size) change cause whole VMSS resource redeployment #18103
Comments
Hi @SlavisaBakicOB thanks for opening the issue! When terraform-provider-azurerm/internal/services/compute/virtual_machine_scale_set_update.go Lines 59 to 60 in c7e7b2b
|
This is unfortunate. As SlavisaBakicOB said above, when changing the For me, the speed of the deployment isn't an issue. It is our customers who have changed the VM sku (for whatever reason they have), and are surprised when their OS disk has been re-formated. I realize that a VM and a VMSS are separate resources altogether, however the virtual_machine has a delete_os_disk_on_termination argument and it would be nice to have a similar flag like that. Workaround |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
1.2.7
AzureRM Provider Version
3.19.1
Affected Resource(s)/Data Source(s)
azurerm_windows_virtual_machine_scale_set
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
TF should just change size if only sku attribute is changed without redeploying whole VMSS resource.
Manually chaning VMSS Size via Portal is completed in less than 10 seconds and VMSS is not recreated.
Actual Behaviour
TF redeployed whole VMSS resource which can take up to 5 minutes instead of just changing VMSS sku which should not take more than 20 seconds.
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: