-
Notifications
You must be signed in to change notification settings - Fork 304
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
Examples no longer create windows virtual machines #87
Comments
In the end, I was able to create windows virtual machines using this modified example. Note I had to specify
|
Hi Jeff Error downloading modules: Error loading modules: error downloading 'file:///home/sskoklev/clouddrive/TestWinServer/.terraform/modules/d71003d1c95d6b7923f4fed52f035836/Azure-terraform-azurerm-compute-a1ea390/os': symlink /home/sskoklev/clouddrive/TestWinServer/.terraform/modules/d71003d1c95d6b7923f4fed52f035836/Azure-terraform-azurerm-compute-a1ea390/os .terraform/modules/bada694310044be46d0f8a72a6cac772: operation not supported Given it works for you Im curious as to whether its related to configuration on my laptop which is Win10. Are you able to share any config related info on your setup or did you have a similar error and been able to resolve it? Thanks in advance |
@sskoklev I'm using mac os mojave. that's the only difference i can think of. |
@reznet Thanks reinstalling the Azure CLI fixed it. |
I got the same problem, unless I add is_windows_image = "true" it will always try to build a linux machine, and fail, of course |
HI @reznet , thanks for opening this issue. In windows cases, we need to add |
The fixes for #56 changed the string used to determine if the virtual machine should be linux or windows, but the fix did not update the examples in the readme file, so new users (such as myself) were not able to create windows virtual machines -- and could not tell why. The module used to check if vm_os_offer or vm_os_simple equalled "WindowsServer" and if so created windows virtual machines. #73 changed this to simply "Windows" with the goal of matching both server and client windows editions (i.e. Windows-10). However, even after changing
vm_os_offer
toWindows
, the virtual machine creation still fails because this module is passing empty strings to azure for the os disk publisher, sku, and offer:it passes these in because the default publisher, offer, sku values come from a lookup table whose key is WindowsServer, but we now must specify Windows to create a windows vm.
Strangely, the empty disk values happen even if you specify their values in the module config, though I'm not able to explain why:In all, I was never able to successfully create a Windows VM using this terraform module.I recommend rolling back #56 in the short term.
Terraform v0.11.11
Steps to reproduce:
run
terraform apply
this thismain.tf
:The text was updated successfully, but these errors were encountered: