-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Creating VM with mana data disks very slow using azurerm_virtual_machine_data_disk_attachment #6314
Comments
hi @NillsF Thanks for opening this issue. Unlike the older We recently opened an issue on the Azure API Specs repository about this which got closed in favour of this issue (which we've got a back-channel going about too) - unfortunately at this time we're waiting on Microsoft to expose the functionality needed to be able to make these changes in parallel. Since this behaviour is unfortunately intentional due to the lack of support in the Azure API - I'm going to close this issue for the moment - however once the upstream API supports attaching data disks in parallel we can remove these locks and this issue should disappear. Thanks! |
Thx @tombuildsstuff , Thx for the detailed reply. I understand an update to the Azure API would allow for further parallelism which is now not possible. Would you mind if I ask you two follow-up questions related to this (as potential workarounds):
|
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_virtual_machine_data_disk_attachment
azurerm_linux_virtual_machine
azurerm_virtual_machine
Terraform Configuration Files
Using the new version with
azurerm_virtual_machine_data_disk_attachment
takes about 35 to 40 minutes.Using the old
azurerm_virtual_machine
object, finishing in 2m37sec.Debug Output
Panic Output
Expected Behavior
I would expect the a VM with large amount of data disks to finish creating in the same time across old version of
azure_virtual_machine
as compared to newazurerm_linux_virtual_machine
.Actual Behavior
It takes 35 to 40 minutes using
azurerm_linux_virtual_machine
and 2min37 forazure_virtual_machine
.Steps to Reproduce
terraform plan
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: