-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
The image option in storage_profile_os_disk under azurerm_virtual_machine_scale_set not working #11400
Comments
We are seeing the same issue with our deployments. According to the documentation (scroll to the Q&A section; middle of the page) This is clearly a bug in the resource provider. Using Azure Scale Sets with Terraform and custom images is currently broken because of this. |
FYI, there is a PR trying to fix this (and some other issues): #11516 |
In my experience, if you are trying to create a VMSS from a custom image - you must omit or leave Compare: |
Closed via #11516 |
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. |
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
terraform -v
Terraform v0.8.4
Affected Resource(s)
Please list the resources as a list, for example:
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Debug Output
Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
Panic Output
No panic output
Expected Behavior
We should be able to spin up VM in VM scale set using the saved image .This same image can be used for spinning up VM using azurerm_virtual_machine and it is working
Actual Behavior
It is not working as expected
terraform : �[31mError applying plan:
At line:1 char:1
1 error(s) occurred:
compute.VirtualMachineScaleSetsClient#CreateOrUpdate: Failure responding to
request: StatusCode=400 -- Original Error: autorest/azure: Service returned an
error. Status=400 Code="InvalidParameter" Message="Parameter
'OSDisk.vhdContainers' is not allowed."
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.�[0m�[0m
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
The text was updated successfully, but these errors were encountered: