Skip to content
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

Storage Account Type - SSD Not Generating - Default Standard HDD Appears #9010

Closed
babu2082 opened this issue Apr 6, 2020 · 6 comments
Closed

Comments

@babu2082
Copy link

babu2082 commented Apr 6, 2020

Storage Account type of Images generated through Packer is always Standard HDD.

Is there any possibilities to generate the Image with SDD storage account type ?

If so which attribute, do I need to use in Packer Template ?

I have already tried with the below attribute, but its still generated as Standard HDD.

"managed_image_storage_account_type": "Premium_LRS",

Let me know the possibilities on this.

@nywilken
Copy link
Contributor

nywilken commented Apr 6, 2020

Hi @babu2082 thanks for reaching out. Setting managed_image_storage_account_type to Premium_LRS with a vm_size that supports Premium storage like the Standard_DS2_v2 should result in a SSD backed instance. The default vm_size is Standard_A1 which does not support Premium storage. What VM size(s) have you tired?

If you are using a supported VM size - see here for a list of SSD supported VMs -
and still running into issues please attach your redacted build configuration along with the Packer debug logs for your build PACKER_LOG=1 packer build template.json to help us better understand what might be going on. Cheers!

@babu2082
Copy link
Author

babu2082 commented Apr 7, 2020

Below are the attributes that I have it in Packer Template

"location": "westeurope",
"vm_size": "Standard_DS2_v2",
"managed_image_storage_account_type": "Premium_LRS"

But I could see the generated images in Shared Image Gallery still shows the Standard HDD.

Attached you the screenshot of the Image in Shared Image Gallery. Will upload the log once the build is completed.

sdd

@ghost ghost removed stage/waiting-reply labels Apr 7, 2020
@babu2082
Copy link
Author

babu2082 commented Apr 7, 2020

Just though to add an additional information to the above.

I have checked the Source Image, where it shows as Premium SSD. But the same image it shows as Standard HDD in Shared Image Gallery.

Attached you the screenshot of both the image.

Also I would like to know is there anyway to specify Standard SSD ?

ssdpacker

@nywilken
Copy link
Contributor

nywilken commented May 5, 2020

Hi @babu2082 thanks for the extra information - super helpful. I had a moment to take a look at this issue and I see that Packer does not currently send the storage type when publishing to the SIG so it is defaults to the Standard_LRS.

I believe the fix is simply setting the StorageAccountType to the value of the ManagedImageStorageAccountType in the step_publish_to_shared_image_gallery) code block. I have not looked through all the code to confirm that, but the value at a minimum needs to be set there.

@peterlindsten
Copy link

Related: #10313

@ghost
Copy link

ghost commented Apr 30, 2021

This issue has been automatically migrated to hashicorp/packer-plugin-azure#27 because it looks like an issue with that plugin. If you believe this is not an issue with the plugin, please reply to hashicorp/packer-plugin-azure#27.

@ghost ghost closed this as completed Apr 30, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants