Skip to content

[AVM Module Issue]: Deployments fail when vm_additional_capabilities is specified due to typo in property hiberation_enabled #151

Open
@Legwarmer2584

Description

@Legwarmer2584

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Issue Type?

Bug

(Optional) Module Version

0.18.0

(Optional) Correlation Id

No response

Description

Using vm_additional_capabilities fails the deployment unless it is null, because there's an inconsistent typo in the property var.vm_additional_capabilities.hiberation_enabled.
It fails because the references in the main.*_vm.tf files are correctly spelling hibernation_enabled.

To highlight:
hiberation_enabled vs.
hibernation_enabled

It fails with error:

│ Error: Unsupported attribute
│ 
│   on .terraform/modules/svm_vm/main.linux_vm.tf line 68, in resource "azurerm_linux_virtual_machine" "this":
│   68:       hibernation_enabled = var.vm_additional_capabilities.hibernation_enabled
│     ├────────────────
│     │ var.vm_additional_capabilities is object with 2 attributes
│ 
│ This object does not have an attribute named "hibernation_enabled".

The variable expects input like this:

  vm_additional_capabilities = {
    hiberation_enabled = false
    ultra_ssd_enabled   = true
  }

But it should be this:

  vm_additional_capabilities = {
    hibernation_enabled = false
    ultra_ssd_enabled   = true
  }

Minimal reproducible example:
main.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions