How to get the leaseid for a blob


  • Hi

    I've search around and I can't find out how to get the leaseid for a blob I've looked in the properties of the blob but it doesn't seem to be there. Can anyone help me?



    Wednesday, September 16, 2015 2:04 PM


All replies

  • LeaseID is the return value CloudBlob.AcquireLease method. 

    Please refer to documentation 

    The REST API documentation is at

    Wednesday, September 16, 2015 4:35 PM
  • Hi Yuan

    Thanks for the reply!

    What about the situation where the blob already has a lease, but I want to see what the leaseid is?

    If I try to acquire a lease on a blob which already has a lease I'll get a 409 Conflict HTTP status code won't I?



    Thursday, September 17, 2015 3:49 PM
  • Hi,

    Unfortunately there's no way to retrieve lease-id after the fact or in other words you get lease id back in response when you acquire the lease but not after that.

    Refer :



    • Marked as answer by David Midgley Thursday, September 17, 2015 5:07 PM
    Thursday, September 17, 2015 4:14 PM