Thursday, October 30, 2008

Azure Storage - CloudDrive SDK

If you are the CloudDrive Powershell extension in the CTP of Azure Storage SDK, the easiest way to map a drive onto the cloud is to add this line to the MountDrive1.ps1 file:

MountDrive -ServiceUrl "" -DriveName "BigDrive" -ProviderName "BlobDrive" -Account "accountName" -Key "XXXXXXXXXX"

Note that the accountName is the name of your project on the Azure web site, the storage project name. And the Key is the primary key you are given from the Azure web site. Also, the SeriveURL doesn't contain your account name at the beginning. Once you have this line added to the bottom of the file and save, you can run the runme.cmd batch file from the command line and your drive will be mapped.

The other two lines look like this:

MountDrive -ServiceUrl "" -DriveName "Blob" -ProviderName "BlobDrive"

MountDrive -ServiceUrl "" -DriveName "Queue" -ProviderName "QueueDrive"

and represent the local storage, which is used to test your storage application -- in this case CloudDrive. CloudDrive is a powershell extension. As an example, it is very limited -- a better example of how to write a power shell extension then how to interact with CloudDrive storage.


No comments:

Post a Comment