hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.46k stars 4.54k forks source link

Support for PatchSettings automaticByPlatformSettings #21690

Closed larsmaes-sogeti closed 11 months ago

larsmaes-sogeti commented 1 year ago

Is there an existing issue for this?

Community Note

Description

Please implement:

This is to be able to configure custom update schedules and update reboot policy

New or Affected Resource(s)/Data Source(s)

azurerm_linux_virtual_machine, azurerm_windows_virtual_machine

Potential Terraform Configuration

resource "azurerm_linux_virtual_machine" "vm" {
...
patch_mode = "AutomaticByPlatform"
bypass_platform_safety_checks_on_user_schedule = true
reboot_settings = "IfRequired"
...
}

References

No response

oswdr commented 1 year ago

It seems that the api version in which the field was added to WindowsVMGuestPatchAutomaticByPlatformSettings / LinuxVMGuestPatchAutomaticByPlatformSettings is not yet supported by either tombuildsstuff/kermit/ or hashicorp/go-azure-sdk.

I'm happy to put some effort into this, but I am unsure how to proceed. My guess would be that we would have to request support for api version 2023-03-01 in one of those repositories?

myc2h6o commented 1 year ago

Hi @oswdr you are right, VM has been using /kermit sdk currently and we need an update for the sdk version before onboarding this new feature, I've created https://github.com/tombuildsstuff/kermit/pull/207 to generate the new sdk version

larsmaes-sogeti commented 1 year ago

It seems that the required sdk updates have been merged. Can you take another look at it please?

brakelee commented 11 months ago

Is there any update on this issue? Is this now fixed?

github-actions[bot] commented 1 month ago

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.