We are trying acquire a lease on a blob by calling Microsoft Azure Blob Java api for a period of 300seconds. But the API always returns null. Has anybody faced this issue? Below is the code that we use.
public void String getBlobLeaseId(com.microsoft.azure.storage.blob.CloudBlob blob) {
String leaseId = blob.acquireLease(300, null);
System.out.println(leaseId);
}