Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Need help adding data disk to VM, do not have option to "Add Data Disk"

$
0
0

I have a Windows 2012 R2 virtual machine that I want to attach a data disk to.  I created a 5GB fixed VHD I created locally on my laptop and then uploaded it to the same storage as the OS VHDs.  If I then try to use the web interface to attach the disk, I do not see the option to "Attach Data Disk".  If I try to add it via PowerShell using:

Get-AzureVM-ServiceName"MyService"-Name"SQLVM1"|Add-AzureDataDisk-ImportFrom-MediaLocation"http://portalvhds.blob.core.windows.net/vhds/MyDataDisk.vhd"-DiskLabel"DataDisk1"-LUN0|Update-AzureVM

I get the error:

Update-AzureVM : Value cannot be null.

Parameter name: accountName

At line:1 char:232

+ ... Bits" -LUN 0 | Update-AzureVM


When I look at the vhds container under the storage node...it shows the VHD I uploaded.  When I look at Disks under the virtual machine node...I do not see my data disk listed.  Not sure where to go from here.


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>