Closed dontreboot closed 5 years ago
hi @dontreboot
Thanks for opening this issue.
Unfortunately Azure doesn't allow attaching an existing OS Disk to a Virtual Machine created from a Plan - however you can instead set the create_option
attribute to FromImage
as shown in this example. Would you be able to take a look and see if that works for you?
As mentioned in the issue template unfortunately we're unable to answer Azure specific configuration questions, instead you're likely to get a better/faster response using one of the community resources instead - as such I'm going to close this issue for the moment.
Thanks!
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!
I have problems with creating a virtual machine with a vsrx image from Azure Marketplace. The image works fine if I create an VM using the Azure portal; however, for Terraform, if I set storage_os_disk create_option, I got error "Changing property 'osDisk.name' is not allowed".
If I create a managed_disk with the image first, then I attach it and I can't set os_profile because I was getting this error:
I want to be able to add a custom user and ssh_key for the virtual machine; hence, I wanted to update os_profile parameters. Anyone has ideas?