Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade_mode change for azurerm_virtual_machine_scale_set forces recreation #11528

Open
sean-t-shen opened this issue Apr 29, 2021 · 2 comments
Labels

Comments

@sean-t-shen
Copy link

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

erraform v0.13.6

  • provider registry.terraform.io/hashicorp/azurerm v2.44.0

Your version of Terraform is out of date! The latest version
is 0.15.1. You can update by downloading from https://www.terraform.io/downloads.html

azurerm_virtual_machine_scale_set

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp

Debug Output

Panic Output

Expected Behaviour

It can be in place update. Azure itself does not require the recreation of the vmss for the change of this parameter, nor does it require even a reboot. Why should Terraform require recreation?

Steps to Reproduce

with a vmss upgrade mode set as manual, change the parameter to auto, and terraform will ask to recreate the vmss
with a vmss upgrade mode set as auto, change the parameter to manual, and terraform will ask to recreate the vmss

Important Factoids

References

  • #0000
@sean-t-shen
Copy link
Author

One more related issue:

Actually, upgrade_mode is the recognized key, instead of

automatic_os_upgrade
upgrade_policy_mode

Is the documentation lagging behind?

Thanks
Sean

@favoretti favoretti added enhancement service/vmss Virtual Machine Scale Sets labels May 17, 2021
@Thilas
Copy link

Thilas commented May 17, 2024

I have the same issue using terraform 1.5.7 with azurerm 3.103.1 while switching from Automatic to Rolling. But Azure Portal allows to switch upgrade mode without any trouble. Any idea why it wants to recreate with terraform?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants