Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[azurestack_image][hyper_v_generation] hyperVGeneration is missing #196

Open
khalid-lemghari opened this issue Aug 5, 2022 · 0 comments

Comments

@khalid-lemghari
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureStack Provider) Version

Terraform v1.2.6
on linux_amd64
+ provider registry.terraform.io/hashicorp/azurestack v1.0.0

Affected Resource(s)

  • azurestack_image

Terraform Configuration Files

resource "azurestack_storage_blob" "azssb" {
  name                   = "centos-7-x86_64-genericcloud-2009.vhd"
  source                 = "/mnt/c/Users/klemghari/Downloads/CentOS-7-x86_64-GenericCloud-2009.vhd"
  storage_account_name   = "saosdisk"
  storage_container_name = "vhds"
  type                   = "Page"
}

resource "azurestack_image" "azsi" {
  name                = "centos-7-x86_64-genericcloud-2009"
  location            = "safi"
  resource_group_name = "rg-abda"

  os_disk {
    os_type  = "Linux"
    os_state = "Generalized"
    blob_uri = azurestack_storage_blob.azssb.url
    size_gb  = 30
    caching  = "None"
  }
}

Debug Output

Panic Output

Error: compute.ImagesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="InvalidParameter" Message="Required parameter 'hyperVGeneration' is missing (null)." Target="hyperVGeneration"

Expected Behaviour

azurestack_image.azsi: Creating...
azurestack_image.azsi: Still creating... [10s elapsed]
azurestack_image.azsi: Still creating... [20s elapsed]
azurestack_image.azsi: Still creating... [30s elapsed]
azurestack_image.azsi: Still creating... [40s elapsed]
azurestack_image.azsi: Creation complete after...

Actual Behaviour

azurestack_image.azsi: Creating...
╷
│ Warning: Argument is deprecated
│
│   with provider["registry.terraform.io/hashicorp/azurestack"],
│   on provider.tf line 1, in provider "azurestack":
│    1: provider "azurestack" {
│
│ `arm_endpoint` is deprecated in favour of `metadata_host` and will be removed in version 1.0 of the AzureStack provider.
╵
╷
│ Error: compute.ImagesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="InvalidParameter" Message="Required parameter 'hyperVGeneration' is missing (null)." Target="hyperVGeneration"
│
│   with azurestack_image.azsi,
│   on prototype.tf line 10, in resource "azurestack_image" "azsi":
│   10: resource "azurestack_image" "azsi" {
│
╵

Steps to Reproduce

  1. terraform apply

Important Factoids

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant