Reputation: 35
I'm attempting to see any details about a lease that is attached to a container. I can see the lease state and duration on the portal, however I am assuming there is more information about the lease that I can use to identify if there is a VM or something that uses that lease.
Upvotes: 0
Views: 1415
Reputation: 136336
however I am assuming there is more information about the lease that I can use to identify if there is a VM or something that uses that lease
Unfortunately there's none. Typically lease has 3 properties - lease state, duration and id. While lease status and duration are exposed, lease id is not and is the responsibility of the lease holder to keep a note of that in case there's a need to renew, release or change the lease.
If a blob (that too page blob) is used as a disk for the VM, you would need to go down VM route, fetch it's properties to find out the URLs of the disks. That information is not stored anywhere along with the blob.
Upvotes: 1