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.61k stars 4.65k forks source link

Support for integrity monitor in azurerm_linux_virtual_machine module #21561

Open d-mankowski-synerise opened 1 year ago

d-mankowski-synerise commented 1 year ago

Is there an existing issue for this?

Community Note

Description

Hello, when creating a new trusted lunch virtual machine, it is possible to configure security features:

image

In azurerm_linux_virtual_machine module I can find variables to enable security boot and vTPM, however, it seems that is it not possible to enable Integrity monitor at the moment

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

azurerm_linux_virtual_machine

Potential Terraform Configuration

integrity_monitor_enabled = <true/false>

References

No response

myc2h6o commented 1 year ago

@d-mankowski-synerise there is currently no properties from Swagger to toggle this. From the Azure document, this is done by installing a VM extension https://learn.microsoft.com/azure/virtual-machines/boot-integrity-monitoring-overview?tabs=template, you can refer to azurerm_virtual_machine_extension for how to use this resource.