Skip to content

Instantly share code, notes, and snippets.

@grumpydev
Created May 13, 2015 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grumpydev/308ee779e04ecfabc606 to your computer and use it in GitHub Desktop.
Save grumpydev/308ee779e04ecfabc606 to your computer and use it in GitHub Desktop.
Adding a new data disk to an azure VM
Get-AzureVM "serviceName" -Name "vmName" | Add-AzureDataDisk -CreateNew -DiskSizeInGB 128 -DiskLabel "Data" -LUN 0 -MediaLocation "https://mybloglocation.blob.core.windows.net/vhds/vmName-data.vhd" | Update-AzureVM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment