Role Instance (Virtual Machine) Configurations

Hi All,

1) I have created a virtual machine of type "STANDART_D1" (Windows Machine) in Azure portal and logged into it. I could find two drive: 1)"C" drive - Of size 126 GB and 2)"D" drive - Of size 50 GB.

2)I also tried to get role sizes using Service Management REST Api:

https://msdn.microsoft.com/en-us/library/azure/dn469422.aspx

 and it gives me following result for "STANDART_D1" machine:

<RoleSize>
        <Name>Standard_D1</Name>
        <Label>Standard_D1 (1 cores, 3584 MB)</Label>
        <Cores>1</Cores>
        <MemoryInMb>3584</MemoryInMb>
        <SupportedByWebWorkerRoles>true</SupportedByWebWorkerRoles>
        <SupportedByVirtualMachines>true</SupportedByVirtualMachines>
        <MaxDataDiskCount>2</MaxDataDiskCount>
        <WebWorkerResourceDiskSizeInMb>51200</WebWorkerResourceDiskSizeInMb>
        <VirtualMachineResourceDiskSizeInMb>51200</VirtualMachineResourceDiskSizeInMb>
</RoleSize>

The REST API seems to give "D" drive size value in MB, please confirm.

How do we get "C" drive size value or total disk size available to the VM?

Thanks and Regards,

Pavan Kale 

September 3rd, 2015 3:00am

Hi,

 I don't think there is any REST API to find out the Free space of a OS Disk, However, since the OS VHD is a page blob, you can get occupied page ranges to get an approximate idea about the used space, subtract that from total blob size to get the free space.

Regards,
Nithin Rathnakar

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 3:17pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics