使用Azure SDK 1.6 ,在Web Role和Worker Role里加载Azure Drive没问题。但是在VM Role里加载会出现以下错误:
CloudDriveException 0x80070103 When Using Windows Azure Drive from a VM Role
和微软的Andrew Edwards 讨论,发现是驱动的问题,需要手动安装驱动。
The workaround for this issue has been published to MSDN: http://msdn.microsoft.com/en-us/library/windowsazure/hh708321.aspx.
-
On the virtual machine, navigate to
C:\Program Files\Windows Azure Integration Components\v1.6\AzureStorageDrive\
-
Open the wadrive.inf file in text editor.
-
Replace the one occurrence of %ARCH% with the five characters amd64.
-
Replace the one occurrence of the six characters $ARCH$ with the five characters amd64.
-
Locate the CatalogFile entry that references the wadrive.cat file:
CatalogFile=wadrive.cat
After the CatalogFile entry, add the line:
DriverVer=06/21/2006,6.0.6002.18464
-
Save the modified file, replacing the original wadrive.inf file.
-
On the virtual machine, open to the device manager. Click Start, right click Computer, and click Manage. This opens the Server Manager.
-
In the left navigation pane, expand Diagnostics and click Device Manager.
-
Right-click the top node in the details pane. Click Add legacy hardware.
-
The Welcome to the Add Hardware Wizard opens.
-
Click Next, select Install the hardware that I manually select from a list (Advanced), and click Next.
-
Click Show All Devices and click Next. A dialog on which you are instructed select the device driver you want to install opens.
-
Click Have Disk…. In Copy manufacturer’s files from: type the path to the wadrive.inf file.
C:\Program Files\Windows Azure Integration Components\v1.6\AzureStorageDrive
-
Click OK. The Add Hardware dialog opens with WA Drive Miniport driver highlighted.
-
Click Next and click Next on the following dialog. The Windows Security dialog opens to verify the driver installation.
-
Click Install and click Finish.