generated from Azure/terraform-azurerm-avm-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Language: Terraform πThis is related to the Terraform IaC languageThis is related to the Terraform IaC languageNeeds: Immediate Attention βΌοΈImmediate attention of module owner / AVM team is neededImmediate attention of module owner / AVM team is neededNeeds: Triage πMaintainers need to triage stillMaintainers need to triage stillStatus: Response Overdue π©When an issue/PR has not been responded to for X amount of daysWhen an issue/PR has not been responded to for X amount of daysType: Feature Request βNew feature or requestNew feature or request
Description
Check for previous/existing GitHub issues
- I have checked for previous/existing GitHub issues
Issue Type?
Feature Request
(Optional) Module Version
2.0
(Optional) Correlation Id
No response
Description
Description:
Currently, the AVM module for Azure Stack HCI Virtual Machine Instance does not expose input variables to allow users to specify patchMode and assessmentMode for Linux and Windows patch settings. These settings are important for managing OS patching behavior and compliance assessment within VMs.
Proposed Enhancement:
Add new module input variables for:
- linux_patch_mode
- linux_patch_assessment_mode
- windows_patch_mode
- windows_patch_assessment_mode
Wire these variables into the resource definition for both linuxConfiguration.patchSettings and windowsConfiguration.patchSettings in the azapi_resource "hybrid_compute_machine" resource.
Update documentation and example usage to demonstrate how users can configure these settings when deploying VMs.
- Example Usage:
module "virtual_machine" {
# ... other arguments ...
linux_patch_mode = "AutomaticByPlatform"
linux_patch_assessment_mode = "ImageDefault"
windows_patch_mode = "AutomaticByPlatform"
windows_patch_assessment_mode = "ImageDefault"
}Benefits:
- Enables users to fully manage and automate patching and assessment compliance for both Linux and Windows VMs.
- Supports a broader range of customer scenarios and compliance requirements.
References:
Azure Patch and Assessment Policy documentation
Current main.tf reference
Additional context:
The current module implementation sets assessmentMode and patchMode to null for both Linux and Windows. Exposing these as configurable options would allow the module to be more flexible and production-ready.
Metadata
Metadata
Assignees
Labels
Language: Terraform πThis is related to the Terraform IaC languageThis is related to the Terraform IaC languageNeeds: Immediate Attention βΌοΈImmediate attention of module owner / AVM team is neededImmediate attention of module owner / AVM team is neededNeeds: Triage πMaintainers need to triage stillMaintainers need to triage stillStatus: Response Overdue π©When an issue/PR has not been responded to for X amount of daysWhen an issue/PR has not been responded to for X amount of daysType: Feature Request βNew feature or requestNew feature or request