none
Snapshot URI

    Question

  • Hi Guys,

    I'd like to ask, how can I get correct URI for snapshot blob. According to MS:

    The URI for a snapshot of that blob is formed as follows:

    https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot=<DateTime>

    But it is not true.

    When I list the container with all blobs /base and snapsot/ I get same URI in all blobs properties:

    I'm listing blobs over WindowsAzure.StorageClient

    $options = New-Object Microsoft.WindowsAzure.StorageClient.BlobRequestOptions
    $options.BlobListingDetails = "Snapshots"
    $options.UseFlatBlobListing = $true
    $snapshots = $blob.Container.ListBlobs($options);


    2/17/2015 1:44:09 PM  http://xxx.blob.core.windows.net/xxx/xxx-system-restore.vhd                
    2/25/2015 12:48:27 PM http://xxx.blob.core.windows.net/xxx/xxx-system-restore.vhd                
    2/25/2015 12:48:32 PM http://xxx.blob.core.windows.net/xxx/xxx-system-restore.vhd                
                          http://xxx.blob.core.windows.net/xxx/xxx-system-restore.vhd 

    When I focused to one $blob.uri there is no full URI with snapshot timestamp.

    Do you have any suggestions?

    dan


    • Edited by dan.p Wednesday, March 04, 2015 10:03 AM
    Wednesday, March 04, 2015 9:43 AM

Answers