-
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_scale_set
r\windows_virtual_machine_scale_set
: Rename terminate_notification
to termination_notification
#15570
r\linux_virtual_machine_scale_set
r\windows_virtual_machine_scale_set
: Rename terminate_notification
to termination_notification
#15570
Conversation
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.
@myc2h6o - could we instead rename terminate to termination as from the docs this is a "termination" notification and that is the correct word, and is more explicit on what this does.
thanks
…set`: Rename `terminate_notification` to `termination_notification`
56c66ef
to
1fcf5bf
Compare
r\orchestrated_virtual_machine_scale_set
: Rename termination_notification
to terminate_notification
r\windows_virtual_machine_scale_set
: Rename terminate_notification
to termination_notification
r\windows_virtual_machine_scale_set
: Rename terminate_notification
to termination_notification
r\linux_virtual_machine_scale_set
r\windows_virtual_machine_scale_set
: Rename terminate_notification
to termination_notification
Hi @katbyte Thanks for the comment, yes |
This functionality has been released in v3.4.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! |
d038282
to
dd5af47
Compare
} | ||
|
||
if !features.FourPointOhBeta() { | ||
out["terminate_notification"] = VirtualMachineScaleSetTerminateNotificationSchema() |
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.
we should be adding a deprecated message to this property directing users to the new one?
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.
Yeah, it's added in VirtualMachineScaleSetTerminateNotificationSchema
in virtual_machine_scale_set.go:
terraform-provider-azurerm/internal/services/compute/virtual_machine_scale_set.go
Line 1408 in dd5af47
Deprecated: "`terminate_notification` has been renamed to `termination_notification` and will be removed in 4.0.", |
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.
ah perfect! thanks :)
Optional: true, | ||
Computed: true, | ||
MaxItems: 1, | ||
Deprecated: "`terminate_notification` has been renamed to `termination_notification` and will be removed in 4.0.", |
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.
Deprecation notice is put 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.
Thanks @myc2h6o - LGTM 🚀
} | ||
|
||
if !features.FourPointOhBeta() { | ||
out["terminate_notification"] = VirtualMachineScaleSetTerminateNotificationSchema() |
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.
ah perfect! thanks :)
This functionality has been released in v3.4.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. |
Updated per comment
--------
Updating the property name to the correct word and match the one in
r\orchestrated_virtual_machine_scale_set
.terraform-provider-azurerm/internal/services/compute/orchestrated_virtual_machine_scale_set_resource.go
Line 193 in f232d0a
This property is
Optional
+Computed
, so in theUpdate
function, by simply checking theHasChange
for each of them, it can handle the migration from old property name to new one (If property name changes with value remaining same, no changes are detected).