How to Retrieve All Available Disk Sizes for Azure Managed Disks Using Java SDK

bonda29 60 Reputation points
2024-09-04T08:17:53.3833333+00:00

I need to programmatically retrieve information about all the available disk sizes for Azure Managed Disks, such as P1, P4, E10, and others. Specifically, I am looking for the following details:

  1. Disk Sizes - The sizes available for each disk type.
  2. Provisioned IOPS - The number of input/output operations per second that each disk type supports.
  3. Provisioned Throughput - The throughput in MB/s for each disk type.
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
647 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nehruji R 8,146 Reputation points Microsoft Vendor
    2024-09-04T13:54:01.8833333+00:00

    Hello bonda29,

    Greetings! Welcome to Microsoft Q&A Platform.

    To retrieve information about the available disk sizes for Azure Managed Disks, including details on disk sizes, provisioned IOPS, and provisioned throughput, you can refer to the following,

    Azure managed disks currently offers five disk types, each intended to address a specific customer scenario:

    Managed disks are supported for all VM sizes in Azure.

    refer - https://learn.microsoft.com/en-us/azure/virtual-machines/disks-types

    Additional Information: While deploying a new Virtual Machine with any Size (Configuration) by default the managed disk option is selected in the disks blade. For more managed disk related queries please refer this document

    How do I calculate pricing for Premium SSD v2 Disk Storage? The total cost of Premium SSD v2 Disk Storage depends on the size and number of disks you provision, and their respective configurations in terms of provisioned IOPS and throughput.

    For example, if you have an application that requires three different disks with the following characteristics:

    Disk 1 - 64 GiBs, 2,000 IOPS and 120 MB/s of throughput Disk 2 - 256 GiBs, 4,000 IOPS and 100 MB/s of throughput Disk 3 - 1,024 GiBs, 15,000 IOPS and 1,200 MB/s of throughput The monthly cost for each Premium SSD v2 Disk, in a Locally Redundant Storage (LRS) configuration, in the East US region will be:

    Disk 1 monthly cost = 64*$0.081 = $5.14/month Disk 2 monthly cost = 256*$0.081 + (4,000-3,000) * $0.0052 = $25.67/month Disk 3 monthly cost = 1,024*$0.081 + (15,000-3,000) * $0.0052 + (1,200 – 125) * $0.041 = $186.71/month Prices are subject to change depending on the region you choose.

    Additional information: If I use Azure Storage for only a few days a month, is the cost prorated?

    Storage capacity is billed in units of the average daily amount of data stored, in gigabytes (GB), over a monthly period. For example, if you consistently used 10 GB of storage for the first half of the month, and none for the second half of the month, you would be billed for your average usage of 5 GB of storage.

    Additional information:

    Pricing calculator: Calculate your estimated hourly or monthly costs for using Azure. The Azure Pricing Calculator can help you understand the costs of moving workloads to the Azure cloud. It estimates Azure pricing once all your data and applications are in Azure.

    Managed Disks pricing: https://azure.microsoft.com/en-us/pricing/details/managed-disks/

    Hope this answer helps! please let us know if you have any further queries. I’m happy to assist you further.


    Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.