{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-storage-java/issues/89","repository_url":"https://api.github.com/repos/Azure/azure-storage-java","labels_url":"https://api.github.com/repos/Azure/azure-storage-java/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-storage-java/issues/89/comments","events_url":"https://api.github.com/repos/Azure/azure-storage-java/issues/89/events","html_url":"https://github.com/Azure/azure-storage-java/issues/89","id":145117362,"number":89,"title":"The lease Status is not correct when the page blob is in the Resource Group.","user":{"login":"grantfei","id":18162707,"avatar_url":"https://avatars.githubusercontent.com/u/18162707?v=3","gravatar_id":"","url":"https://api.github.com/users/grantfei","html_url":"https://github.com/grantfei","followers_url":"https://api.github.com/users/grantfei/followers","following_url":"https://api.github.com/users/grantfei/following{/other_user}","gists_url":"https://api.github.com/users/grantfei/gists{/gist_id}","starred_url":"https://api.github.com/users/grantfei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantfei/subscriptions","organizations_url":"https://api.github.com/users/grantfei/orgs","repos_url":"https://api.github.com/users/grantfei/repos","events_url":"https://api.github.com/users/grantfei/events{/privacy}","received_events_url":"https://api.github.com/users/grantfei/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-01T08:15:58Z","updated_at":"2016-04-05T17:09:05Z","closed_at":"2016-04-05T17:09:05Z","body":"I have created a VM in a Resource Group. After call the following methods, it can can not get the lease status, which shows \"UNLOCKED\", but GUI shows it has been locked.\r\nCloudPageBlob blob = container.getPageBlobReference(\"xxxx.vhd\");\r\nBlobProperties prop = blob.getProperties();\r\nLeaseStatus leaseStatus = prop.getLeaseStatus();"},"comment":{"url":"https://api.github.com/repos/Azure/azure-storage-java/issues/comments/205900151","html_url":"https://github.com/Azure/azure-storage-java/issues/89#issuecomment-205900151","issue_url":"https://api.github.com/repos/Azure/azure-storage-java/issues/89","id":205900151,"user":{"login":"emgerner-msft","id":5225146,"avatar_url":"https://avatars.githubusercontent.com/u/5225146?v=3","gravatar_id":"","url":"https://api.github.com/users/emgerner-msft","html_url":"https://github.com/emgerner-msft","followers_url":"https://api.github.com/users/emgerner-msft/followers","following_url":"https://api.github.com/users/emgerner-msft/following{/other_user}","gists_url":"https://api.github.com/users/emgerner-msft/gists{/gist_id}","starred_url":"https://api.github.com/users/emgerner-msft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgerner-msft/subscriptions","organizations_url":"https://api.github.com/users/emgerner-msft/orgs","repos_url":"https://api.github.com/users/emgerner-msft/repos","events_url":"https://api.github.com/users/emgerner-msft/events{/privacy}","received_events_url":"https://api.github.com/users/emgerner-msft/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T17:09:05Z","updated_at":"2016-04-05T17:09:05Z","body":"getProperties gets the properties on the local object which here has never been populated from the service. So, it is set to the defaults (ex, unlocked). To actually get the properties from the service you need to first downloadAttributes. Once you do that, everything should appear as expected."}}