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

Ability to specify LUN and Caching for additional Azure data disks on managed image #6071

Closed
ukienet opened this issue Mar 27, 2018 · 1 comment

Comments

@ukienet
Copy link

ukienet commented Mar 27, 2018

Overview

Since version 1.2.2 packer supports building with additional disks.

I tested this new feature by creating a template that creates additional 127GB managed data disk. After I ran the template I found out that packer defaults certain values for data disks:

  1. LUN is defaulted to 0. I assume that adding more disks will increment LUN to 1, 2, etc.
  2. Caching is set to Read/Write on attached disks.

image

Problem

Once Azure Manager disk is created, it is not possible to change properties of the attached disk in the managed image. For example, Azure CLI does not offer commands to change property of data disk in managed image. Likewise, Azure Powershell, does not offer cmd-lets to change properties of data disk in managed image. I tired changing Lun via powershell in Azure Cloud Shell and received the following error

image

  1. I need to change LUN from 0 to 1 on a single data disk created with the managed disk using packer version 1.2.2. This is the requirement of the Azure Scale Set infrastructure we run.
  2. I also need to set caching to Read-only according to recommendations: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/premium-storage-performance#disk-caching

Feature Requested

Enhance packer to allow setting LUN and cache value for data disks before creating managed image.

@ukienet ukienet changed the title Ability to specify LUN and Caching for additional Azure data disks Ability to specify LUN and Caching for additional Azure data disks on managed image Mar 27, 2018
@ghost ghost closed this as completed Apr 30, 2021
@ghost
Copy link

ghost commented Apr 30, 2021

This issue has been automatically migrated to hashicorp/packer-plugin-azure#19 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#19.

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