locked
The connection between a VHD in Storage and a WebRole in Hosting RRS feed

  • Question

  • I'm doing the PhotoAlbum tutorial in the Azure SDK thingy. It is not clear to me how the VHD is accessed from the Hosted Service. I've uploaded the VHD, and the ImageStoreBlobUri, which is known to the hosted service, has a value:

    mydrives/SamplePictures.vhd

    It is that mydrives which confuses me. Is that a default directory? Or is it something created when the Storage Account is setup?


    http://www.ransen.com Cad and Graphics software

    Monday, October 1, 2012 7:32 AM

Answers

  • To add on to what Valery said: "mydrives" is simply the container used for storing your blob which is referenced by "SamplePictures.vhd". The generic URI for Blobs is http://accountName.blob.core.windows.net/<containerName>/<blobName>

    http://blogs.msdn.com/b/windowsazurestorage/archive/2010/05/10/windows-azure-storage-abstractions-and-their-scalability-targets.aspx gives more details on Windows Azure Storage options.

    HTH


    • Proposed as answer by Valery Jacobs Monday, October 1, 2012 8:38 AM
    • Edited by Pooja Singh Monday, October 1, 2012 8:56 AM Missed out a part of the post
    • Marked as answer by Dino He Wednesday, October 3, 2012 6:13 AM
    • Unmarked as answer by Dino He Wednesday, October 3, 2012 6:15 AM
    • Marked as answer by MingXu-MSFTMicrosoft employee Monday, October 8, 2012 3:14 PM
    Monday, October 1, 2012 8:31 AM
  • In the tutorial mydrives/SamplePictures is simply the full URI to the VHD blob.

    Technically it is not a folder called 'mydrives' with a file called 'SamplePictures.vhd' in it, it is 1 blob with a / in the name.

    Azure storage allows us to use a seperator character, in this case the '/', to simulate a folder structure because it doesn't allow containers in containers.

    Correction: Pooja Singh correctly pointed out that in this case 'mydrives' does correspond to the container name not the, I misread the full URI in the tutorial. Any additional slash in the name correspond to pseudo folders like I state above.


    Never miss the latest Windows Azure news on http://blogs.msdn.com/b/windowsazure/


    Monday, October 1, 2012 8:11 AM

All replies

  • In the tutorial mydrives/SamplePictures is simply the full URI to the VHD blob.

    Technically it is not a folder called 'mydrives' with a file called 'SamplePictures.vhd' in it, it is 1 blob with a / in the name.

    Azure storage allows us to use a seperator character, in this case the '/', to simulate a folder structure because it doesn't allow containers in containers.

    Correction: Pooja Singh correctly pointed out that in this case 'mydrives' does correspond to the container name not the, I misread the full URI in the tutorial. Any additional slash in the name correspond to pseudo folders like I state above.


    Never miss the latest Windows Azure news on http://blogs.msdn.com/b/windowsazure/


    Monday, October 1, 2012 8:11 AM
  • To add on to what Valery said: "mydrives" is simply the container used for storing your blob which is referenced by "SamplePictures.vhd". The generic URI for Blobs is http://accountName.blob.core.windows.net/<containerName>/<blobName>

    http://blogs.msdn.com/b/windowsazurestorage/archive/2010/05/10/windows-azure-storage-abstractions-and-their-scalability-targets.aspx gives more details on Windows Azure Storage options.

    HTH


    • Proposed as answer by Valery Jacobs Monday, October 1, 2012 8:38 AM
    • Edited by Pooja Singh Monday, October 1, 2012 8:56 AM Missed out a part of the post
    • Marked as answer by Dino He Wednesday, October 3, 2012 6:13 AM
    • Unmarked as answer by Dino He Wednesday, October 3, 2012 6:15 AM
    • Marked as answer by MingXu-MSFTMicrosoft employee Monday, October 8, 2012 3:14 PM
    Monday, October 1, 2012 8:31 AM
  • Ok, thanks both, I'm beginning to see light at the end of the tunnel. There was an error in my command line to VHDUpload. The second parameter should have been:

    mydrives/SamplePictures.vhd

    but wasn't. This acounted for the fact that the sample did not run and also the fact that I could not see the complete connection between the WebRole and the blob with VHD.

    I'll try again...


    http://www.ransen.com Cad and Graphics software

    Monday, October 1, 2012 9:05 AM
  • So, for example,

    mydrives/landscapes/MyLandscapePictures.vhd

    means that mydrives is a container (in the blob for a VHD) while

    landscapes/MyLandscapePictures.vhd

    can be considered as a single "object".


    http://www.ransen.com Cad and Graphics software

    Monday, October 1, 2012 9:08 AM
  • It does help, thanks!  :)


    http://www.ransen.com Cad and Graphics software

    Monday, October 1, 2012 9:08 AM
  • Aha:

    http://accountName.blob.core.windows.net/<containerName>/<blobName>
    
    Many thanks for the clear explanation.


    http://www.ransen.com Cad and Graphics software

    Wednesday, October 3, 2012 7:02 AM