You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ terraform plan
╷
│ Error: Unsupported argument
│
│ on main.tf line 99, in resource "azurerm_linux_virtual_machine" "main":
│ 99: enabled = "true"
│
│ An argument named "enabled" is not expected here.
╵
$
$ terraform apply
╷
│ Error: Unsupported argument
│
│ on main.tf line 99, in resource "azurerm_linux_virtual_machine" "main":
│ 99: enabled = "true"
│
│ An argument named "enabled" is not expected here.
╵
$
Expected Behavior
Both of terraform plan and terraform apply work as usual
References
The following Azure document says
Enable managed boot diagnostics using Azure Resource Manager (ARM) templates
I belive the enabled flag has been removed from the linux and windows virtual machine resource.
To enable boot diagnostics you set the boot_diagnostics block and give in the storage_account_uri. If you pass in a null value a Managed Storage Account will be used to store boot diagnostics.
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.
Terraform Version
Terraform Configuration Files
Ref: https://github.com/gkzz/azure-provider-terraform-linux/blob/main/main.tf
Debug Output
Expected Behavior
Both of
terraform plan
andterraform apply
work as usualReferences
Ref: https://docs.microsoft.com/en-us/azure/virtual-machines/boot-diagnostics#enable-managed-boot-diagnostics-using-azure-resource-manager-arm-templates
The following Terraform document also mentions
Ref: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_machine
The text was updated successfully, but these errors were encountered: