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

Missing required plan information support for Azure Marketplace images in azurerm_virtual_machine_scale_set #14926

Closed
gaborho opened this issue May 30, 2017 · 3 comments

Comments

@gaborho
Copy link

gaborho commented May 30, 2017

Terraform Version

Terraform v0.9.6

Affected Resource(s)

  • azurerm_virtual_machine_scale_set

Terraform Configuration Files

...
resource "azurerm_virtual_machine_scale_set" "worker-vmss" {
  name                = "worker-vmss"
  location            = "West Europe"
  resource_group_name = "${azurerm_resource_group.psqldemo-rg.name}"
  upgrade_policy_mode = "Manual"

  plan {
    name = "docker-ce"
    product = "docker-ce"
    publisher = "docker"
  }
...

Expected Behavior

According to virtualMachineScaleSets template reference, for Azure marketplace images, Plan section should be supported in azurerm_virtual_machine_scale_set resource, similarly like for azurerm_virtual_machine resource type.

Actual Behavior

During VMSS creation, in case there is no plan section, Terraform drops the following error:

* azurerm_virtual_machine_scale_set.worker-vmss: 1 error(s) occurred:

* azurerm_virtual_machine_scale_set.worker-vmss: compute.VirtualMachineScaleSetsClient#CreateOrUpdate: Failure sending request: StatusCode=200 -- Original Error: Long running operation terminated with status 'Failed': Code="VMMarketplaceInvalidInput" Message="Creating a virtual machine from Marketplace image requires Plan information in the request. OS disk name is worker-vmss_worker-vmss_0_OsDisk_1_97a2010334f9449baad0f65c9a6351e9."

If I define plan section, I got following error:

1 error(s) occurred:

* azurerm_virtual_machine_scale_set.worker-vmss: : invalid or unknown key: plan
@gaborho gaborho changed the title Missing mandatory plan information for Azure Marketplace image in azurerm_virtual_machine_scale_set Missing mandatory plan information support for Azure Marketplace image in azurerm_virtual_machine_scale_set May 30, 2017
@gaborho gaborho changed the title Missing mandatory plan information support for Azure Marketplace image in azurerm_virtual_machine_scale_set Missing required plan information support for Azure Marketplace image in azurerm_virtual_machine_scale_set May 30, 2017
@gaborho gaborho changed the title Missing required plan information support for Azure Marketplace image in azurerm_virtual_machine_scale_set Missing required plan information support for Azure Marketplace images in azurerm_virtual_machine_scale_set May 30, 2017
@laurentgrangeau
Copy link

I have the same problem when using azurerm_virtual_machine and docker-ee

@gaborho
Copy link
Author

gaborho commented Jun 8, 2017

Do you have an estimation when this can be implemented? Currently as a workaround I use template deployment, but this is not ideal, because Terraform does not know about the individual resources created by Azure using a deployment template as mentioned in notes. Thanks.

@ghost
Copy link

ghost commented Apr 9, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants