-
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
r/(linux|windows)_virtual_machine_scale_set - Add support for scale_in_policy and terminate_notification #5391
r/(linux|windows)_virtual_machine_scale_set - Add support for scale_in_policy and terminate_notification #5391
Conversation
Also, unfortunately despite I added acc-tests for both new features, but those acc-tests cannot pass, neither could the existing acc-tests for VMSS.
And one of the existing acc-test gives the same error:
|
601a902
to
7779d6f
Compare
Some information about the |
52f2ec6
to
2fb9a00
Compare
Rebased to master and conflicts resolved |
2fb9a00
to
3fcec12
Compare
3fcec12
to
f03f175
Compare
f03f175
to
23c7a25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ArcturusZhang
Thanks for this. There's a failing test due to a typo in the template section, but if you can update that then this LGTM 👍
...internal/services/compute/tests/resource_arm_windows_virtual_machine_scale_set_other_test.go
Outdated
Show resolved
Hide resolved
Hi @jackofallops I have fixed the typo, please have a look, thanks! |
Hi @ArcturusZhang |
This has been released in version 2.2.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.2.0"
}
# ... other configuration ... |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
This PR add
scale_in_policy
andterminate_notification
to bothazurerm_linux_virtual_machine_scale_set
andazurerm_windows_virtual_machine_scale_set
.You can find the docs for them here:
scale_in_policy: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-scale-in-policy
terminate_notification: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-terminate-notification
Fixes: #5738
Terraform usage example: