Open gesnaud opened 2 months ago
We are just using this:
boot_diagnostics {}
Just an empty block enabled the ms managed boot diagnostics
Hi @gesnaud that combination of terraform and azurerm are kind of old. Any chance you could test again using the latest versions?
Hi @Chambras !
I just test with this Terraform configuration (cannot go to AzureRM 4.X for now):
# terraform version
Terraform v1.9.7
on linux_amd64
+ provider registry.terraform.io/aztfmod/azurecaf v1.2.28
+ provider registry.terraform.io/azure/azapi v1.13.0
+ provider registry.terraform.io/hashicorp/azurerm v3.116.0
+ provider registry.terraform.io/hashicorp/template v2.2.0
And here is what appeared in azurerm_virtual_machine
:
# module.firewall.azurerm_virtual_machine.hub-fw01vm will be updated in-place
~ resource "azurerm_virtual_machine" "sdfqsdfqsdf" {
id = "/subscriptions/xxxxx/resourceGroups/qsdfqsdff/providers/Microsoft.Compute/virtualMachines/qsdfqsdf"
name = "qsdfqfd"
# (8 unchanged attributes hidden)
- boot_diagnostics {
- enabled = true -> null
# (1 unchanged attribute hidden)
}
[...]
But the bug might come from the resource used here, which I did not pay attention enough: azurerm_virtual_machine
and not azurerm_linux_virtual_machine
as I mentionned in title!
What do you think?
Thanks!
@gesnaud I think you should give it a try with azurerm_linux_virtual_machine
and the latest azurerm version. If this was indeed a bug, a fix will be in future releases.
@Chambras : Thanks for your replay!
Indeed, because of this bug we cannot move from azurerm_virtual_machine
to azurerm_{linux,windows}_virtual_machine
.
Anyway, effectively, the bootdiagnostics bug I mentionned not occuring with `azurerm{linux,windows}_virtual_machine`!
Sorry about that, I did not pay attention enough!
Is there an existing issue for this?
Community Note
Terraform Version
1.6.5
AzureRM Provider Version
3.106.1
Affected Resource(s)/Data Source(s)
azurerm_linux_virtual_machine
Terraform Configuration Files