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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_virtual_machine_scale_set: support eviction policy #1690

Closed
CoRfr opened this issue Jul 31, 2018 · 4 comments
Closed

azurerm_virtual_machine_scale_set: support eviction policy #1690

CoRfr opened this issue Jul 31, 2018 · 4 comments
Assignees
Labels
enhancement service/vmss Virtual Machine Scale Sets
Milestone

Comments

@CoRfr
Copy link
Contributor

CoRfr commented Jul 31, 2018

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

Description

With low-priority scale sets, it can be interesting to set the 'eviction policy', cf https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-use-low-priority#eviction-policy.

When creating low-priority scale sets, you can set the eviction policy to Deallocate (default) or Delete.

The Deallocate policy moves your evicted VMs to the stopped-deallocated state allowing you to redeploy evicted instances. However, there is no guarantee that the allocation will succeed. The deallocated VMs will count against your scale set instance quota and you will be charged for your underlying disks.

New or Affected Resource(s)

  • azurerm_virtual_machine_scale_set

Potential Terraform Configuration

resource "azurerm_virtual_machine_scale_set" "test" {
  name                = "acctvmss-%[1]d"
  location            = "${azurerm_resource_group.test.location}"
  resource_group_name = "${azurerm_resource_group.test.name}"
  upgrade_policy_mode = "Manual"
  overprovision       = false
  priority            = "Low"
  eviction_policy = "Delete"

References

@CoRfr
Copy link
Contributor Author

CoRfr commented Jul 31, 2018

A brief analysis shows that {{vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2017-12-01/compute/}} does not mention EvictionPolicy, while the REST API 2017-12-01 already does support setting this parameter, which makes me a bit confused ...

Seems like it starts appearing at v19.0.0 of the azure-sdk-for-go, while the current version is v15.0.0 (last updated in April 2018).

@katbyte katbyte added enhancement service/vmss Virtual Machine Scale Sets labels Jul 31, 2018
@berney
Copy link

berney commented Sep 23, 2018

Just to be clear if anyone is wondering, as currently implemented the VMSS terraform creates will have eviction policy: deallocate.

@dghubble
Copy link

Looks like #1861 updated to v20.1.0 of github.com/Azure/azure-sdk-for-go for the Sept 14, 2018 release.

@ghost
Copy link

ghost commented Mar 6, 2019

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!

@ghost ghost locked and limited conversation to collaborators Mar 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement service/vmss Virtual Machine Scale Sets
Projects
None yet
Development

No branches or pull requests

5 participants