azurerm_maintenance_configuration with scope of InGuestPatch and reboot Always Issue #24357
Closed
1 task done
Labels
Milestone
Is there an existing issue for this?
Community Note
Terraform Version
1.5.6
AzureRM Provider Version
3.85.0
Affected Resource(s)/Data Source(s)
azurerm_maintenance_configuration
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
When setting the reboot property to a value of "Always" it should simply set it and never need apply this setting again (assuming it does not change in azure). On the azure side the value is "AlwaysReboot". There appears to be a difference between what the provider and the azure api are doing.
Actual Behaviour
The setting of "Always" is described as the proper way to set the value to "AlwaysReboot" but the API comes back with a different value on the next plan (after apply). So terraform wants to update the maint config each time.
Steps to Reproduce
Simply add a maint config with "Always", plan & apply it, then run a new plan, it'll detect a change and want to update the resource again and again.
Important Factoids
No response
References
https://learn.microsoft.com/en-us/azure/update-manager/manage-vms-programmatically?tabs=cli%2Crest
The text was updated successfully, but these errors were encountered: