title: How to deploy an Azure VM with Custom Data and an 'attached' VHD in ARM?
body: <p>How would I deploy a linux VM to azure with custom data, in addition to using a VHD in my storage account as the OS disk?</p>
  
  <p>In Azure Classic, I can add a custom data parameter to my deployment. See 
  <a href="https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-windows-classic-inject-custom-data" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-windows-classic-inject-custom-data</a>. </p>
  
  <p>So, my goal is to do the same in Azure Resource Manager. In addition, I'm just trying to provide custom data -- I'm not trying to run script through the Script Extension (which is Windows only..).</p>
  
  <p>A series of PowerShell commands or an Azure Template are what I'm looking for.</p>