-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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/azurerm_linux_virtual_machine and r/azurerm_linux_virtual_machine_scale_set - secure_boot_enabled, vtpm_enabled #13842
r/azurerm_linux_virtual_machine and r/azurerm_linux_virtual_machine_scale_set - secure_boot_enabled, vtpm_enabled #13842
Conversation
hey @ms-henglu Thanks for this PR - although this looks to be a duplicate of #13713? Since we're flattening the properties in that PR - but this PR is also adding support for the Linux VM/VMSS resources, would you mind using the same approach for the Linux VM/VMSS (and reverting the Windows VM/VMSS changes here)? Thanks! |
Hi @tombuildsstuff , Thanks for the information, I didn't notice there's an existing PR. And yes, I'll change it. |
Hi @tombuildsstuff , I checked that #13713, I think it may not align with rest api spec.
What do you think? |
04eb27d
to
46b9539
Compare
HI @tombuildsstuff , I've updated this PR to use same schema as 13713, please take another look, thanks! |
Hi @tombuildsstuff , I've updated this PR, would you please take another look? And would you please also remove the duplicate label? Thanks! |
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 @ms-henglu
Thanks for pushing those changes - I've taken a look through and left a few comments inline, if we can fix those up then this should otherwise be good to go 👍
Thanks!
internal/services/compute/linux_virtual_machine_resource_other_test.go
Outdated
Show resolved
Hide resolved
internal/services/compute/linux_virtual_machine_resource_other_test.go
Outdated
Show resolved
Hide resolved
internal/services/compute/linux_virtual_machine_resource_other_test.go
Outdated
Show resolved
Hide resolved
internal/services/compute/linux_virtual_machine_resource_other_test.go
Outdated
Show resolved
Hide resolved
internal/services/compute/linux_virtual_machine_scale_set_other_resource_test.go
Outdated
Show resolved
Hide resolved
internal/services/compute/linux_virtual_machine_scale_set_other_resource_test.go
Outdated
Show resolved
Hide resolved
internal/services/compute/linux_virtual_machine_scale_set_other_resource_test.go
Outdated
Show resolved
Hide resolved
internal/services/compute/linux_virtual_machine_scale_set_other_resource_test.go
Outdated
Show resolved
Hide resolved
internal/services/compute/linux_virtual_machine_resource_other_test.go
Outdated
Show resolved
Hide resolved
name = "acctestVM-%d" | ||
resource_group_name = azurerm_resource_group.test.name | ||
location = azurerm_resource_group.test.location | ||
size = "Standard_DS3_v2" |
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.
this is a machine with 4 cores and 14GB of ram.. an F1 will be more than sufficient here
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.
I tried F1, but got "The selected VM size 'Standard_F1' cannot boot Hypervisor Generation '2'"
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.
you'll need to use the Gen1 image too (see the other VM/VMSS tests for examples)
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.
It seems this feature can only be enabled in Gen2 image.
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.
in which case can we pick a smaller vm size then?
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.
I changed to Standard_B1ls
, please take another look, thanks!
Hi @tombuildsstuff , I've added a commit according to your suggestions, would you please take another look? thanks! |
Hi @tombuildsstuff , I changed them to use a smaller vm size, please take another look, thanks! |
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.
LGTM - thanks for making those changes @ms-henglu
This functionality has been released in v2.88.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Fixes #13039