-
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_windows_virtual_machine and r/azurerm_windows_virtual_machine_scale_set - secure_boot_enabled, security_type, vtpm_enabled #13713
Conversation
…ne resources Added SecurityType parameter to SecurityProfile and UefiSettings block. Added Unit Tests
Resolved some mismatches from read function where a false is returned as null
Added trusted platform features to windows_virtual_machine_scale_set and tests Updated docs for new settings
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.
Thanks @amccullough84 - LGTM 🏗️
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.
hey @amccullough84
Thanks for this PR - I've taken a look through and left some comments inline but if we can fix those up then this should otherwise be good to merge 👍
Thanks!
internal/services/compute/windows_virtual_machine_scale_set_resource.go
Outdated
Show resolved
Hide resolved
Simplified Resource Read in VM and VMSS Updated references to TrustedLaunch to use compute.SecurityTypesTrustedLaunch constant
This functionality has been released in v2.83.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! |
Hi @amccullough84 , thanks for the PR. Sorry that I didn't notice this PR. and I'm working on the same thing, And I found some properties may not align with the rest api spec. And I listed my concerns here: #13842 (comment) Would you please take a look? Thanks! |
@ms-henglu fwiw this intentionally differs from the API Spec - these properties should be top-level fields, so that's fine 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.
hey @amccullough84
Thanks for pushing those changes / apologies for the delayed re-review here.
I've taken a look through and left some comments inline regarding removing the security_type
field (since there's only one value, and it's conditional on Secure Boot being enabled, so that can be implied) - and removing the update tests for both Secure Boot and VTPM (since neither of these values can be updated) - but if we can fix those up then this should be otherwise good to go 👍
Thanks!
internal/services/compute/windows_virtual_machine_resource_other_test.go
Outdated
Show resolved
Hide resolved
internal/services/compute/windows_virtual_machine_resource_other_test.go
Outdated
Show resolved
Hide resolved
internal/services/compute/windows_virtual_machine_scale_set_other_resource_test.go
Outdated
Show resolved
Hide resolved
internal/services/compute/windows_virtual_machine_scale_set_other_resource_test.go
Outdated
Show resolved
Hide resolved
internal/services/compute/windows_virtual_machine_scale_set_resource.go
Outdated
Show resolved
Hide resolved
internal/services/compute/windows_virtual_machine_scale_set_resource.go
Outdated
Show resolved
Hide resolved
…er_test.go Co-authored-by: Tom Harvey <[email protected]>
…er_test.go Co-authored-by: Tom Harvey <[email protected]>
…her_resource_test.go Co-authored-by: Tom Harvey <[email protected]>
Co-authored-by: Tom Harvey <[email protected]>
Co-authored-by: Tom Harvey <[email protected]>
Co-authored-by: Tom Harvey <[email protected]>
…source.go Co-authored-by: Tom Harvey <[email protected]>
…her_resource_test.go removed update acceptance test - unnecessary with ForceNew
…achine_scale_set_resource.go security_type is inferred during create - not required
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.
hey @amccullough84
Thanks for pushing those changes - apologies for the delayed re-review here, I've spotted a couple of minor things which'll mean this doesn't build/test correctly - but if we can remove the unused lines (which I hope you don't mind but I'm going to push a commit to fix) then this should otherwise be good to go 👍
Thanks!
internal/services/compute/windows_virtual_machine_scale_set_resource.go
Outdated
Show resolved
Hide resolved
Tests look good 👍 |
This functionality has been released in v2.86.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. |
Adds secure_boot_enabled and vtpm_enabled properties for windows_virtual_machine and windows_virtual_machine_scale_set.
Fixes #13039