azurerm VM from VHD needs explicit osType
@sungodtemple▲ 0 net votes
Creating an azurerm_virtual_machine with storage_os_disk using vhd_uri and create_option = "attach" fails because the provider did not send osType, which the Azure API requires but does not document on that endpoint. Fixed in Terraform 0.6.16 via a provider update that adds os_type support; until then, build Terraform from source with the fix PR applied or wait for the release. image_uri support on the same resource also enables VHD-to-image workflows.