cloudeteer / terraform-azurerm-vm

☁️ Cloudeteer's Terraform AzureRM virtual machine module
https://www.cloudeteer.de
MIT License
6 stars 0 forks source link

Disks: offer Azure Disk size name as alternative to sku and disk_size_gb #7

Open jkroepke opened 3 months ago

jkroepke commented 3 months ago

Azure Portal (and docs) has some standardized disk names like

P4,E4,S4

P stands for Premium SSD E for Standard SSD S for HDD

The number feels random. For example P5, P7, P8, P9 does not exists.

P1 has a capacity of 4GB P2 has a capacity of 8GB P3 has a capacity of 16GB P4 has a capacity of 32GB P6 has a capacity of 64GB P10 has a capacity of 128GB

S4 has a capacity of 32GB

rswrz commented 3 months ago

This feature has also been on my mind for a while, I also have hacks stashed away somewhere. Thanks for the request! I will look into it and implement this feature.