-
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_virtual_machine
r\windows_virual_machine
: Add support for termination_notification
#14933
Conversation
bfdac87
to
2787803
Compare
@@ -287,6 +289,16 @@ A `secret` block supports the following: | |||
|
|||
--- | |||
|
|||
A `terminate_notification` block supports the following: |
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.
grammer, shouldn't this be
A `terminate_notification` block supports the following: | |
A `termination_notification` block supports the following: |
and all documentation should probably use termination instead of terminate
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.
linux_virtual_machine_scale_set_resource
and windows_virtual_machine_scale_set_resource
has it named terminate_...
, however orchestrated_virtual_machine_scale_set_resource
has it named termination_...
terraform-provider-azurerm/internal/services/compute/linux_virtual_machine_scale_set_resource.go
Line 282 in 5361e9c
"terminate_notification": VirtualMachineScaleSetTerminateNotificationSchema(), |
terraform-provider-azurerm/internal/services/compute/windows_virtual_machine_scale_set_resource.go
Line 304 in 5361e9c
"terminate_notification": VirtualMachineScaleSetTerminateNotificationSchema(), |
Line 185 in 5361e9c
"termination_notification": OrchestratedVirtualMachineScaleSetTerminateNotificationSchema(), |
Since the property name in API is called TerminateNotificationProfile
, maybe it's better to use terminate_...
? I'll start another pr to align the name in orchestrated_virtual_machine_scale_set_resource
.
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.
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.
Update
--------
I've updated the property name from terminate_notification
to termination_notification
according to the suggestion
3d73b67
to
9076eda
Compare
r\VirtualMachine
: Add support for terminate_notification
r\linux_virtual_machine
r\windows_virual_machine
: Add support for termination_notification
… `termination_notification`
9076eda
to
9b198ea
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.
Thanks @myc2h6o - LGTM 🏗️
This functionality has been released in v3.0.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. |
Aligned to orchestrated VMSS implementation
terraform-provider-azurerm/internal/services/compute/orchestrated_virtual_machine_scale_set_resource.go
Line 193 in f232d0a