Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

Creating a VM with Standard SSD #223

Open
jbeker opened this issue Dec 24, 2018 · 2 comments
Open

Creating a VM with Standard SSD #223

jbeker opened this issue Dec 24, 2018 · 2 comments

Comments

@jbeker
Copy link

jbeker commented Dec 24, 2018

Is it possible to create a VM with a Standard SSD for the OS Disk? I am building a test machine and I'd rather not pay for the speed I don't need. I had thought setting vm_storage_account_type to Standard_LRS would do this, however it appears it does not. I can confirm my config has registered the Standard_LRS for the storage account type:

==> local.food52staging.com:  -- Location: eastus2
==> local.food52staging.com:  -- Admin Username: vagrant
==> local.food52staging.com:  -- VM Name: dawn-cloud-94
==> local.food52staging.com:  -- VM Storage Account Type: Standard_LRS
==> local.food52staging.com:  -- VM Size: Standard_B2ms
==> local.food52staging.com:  -- Image URN: canonical:ubuntuserver:16.04.0-LTS:latest```

Any thoughts? Thanks!
@wizicer
Copy link

wizicer commented Jan 10, 2019

I have the same issue, hope it could be fixed,
here is my output when starting:

==> default:  -- Location: japanwest                                       
==> default:  -- Admin Username: vagrant                                   
==> default:  -- VM Name: ssserver                                         
==> default:  -- VM Storage Account Type: Standard_LRS                     
==> default:  -- VM Size: Standard_B1s                                     
==> default:  -- Image URN: Canonical:UbuntuServer:18.04-LTS:latest        

@stijnbrouwers
Copy link

Seems to me that the issue is located in the virtual machine template:
templates/arm/resources/virtual_machine.json.erb

As you can see from lines 52-61, the parameter (storage type) is only used when vhd_uri || vm_managed_image_id are defined.
By placing the following lines outside the if-statement:
"managedDisk": { "storageAccountType": "<%= storage_account_type %>" },
I think it will be solved.
However, I am not a ruby developer and have no idea how to build/test it. I can't find any documentation on how to do this, if someone can help me get going on this. I will fix it...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants