I started using Azure Java SDK 1.0.0 recently and I noticed that for a VM the method osDiskStorageAccountType()
always returns null. The SDK is unable to even get information about the attached data disks.
1 Answer
From the article we know that osDiskStorageAccountType is only available for managed disk (this is c# based API but I think it will suitable for Java). Here is a snippet:
Gets the storage account type of the managed disk backing Os disk.
If you create Azure VM based on managed disk, it will give you related info.
-
I was expecting the information to be available for unmanaged disk as well since they belong either to Standard or Premium Storage. Thanks for the response. May 15, 2017 at 14:06