Project

General

Profile

Feature #14912

Updated by Peter Amstutz about 5 years ago

https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/createorupdate#datadisk 

 Need to add managed disks to the DataDisk section. 

 Use the "ScratchAttached" value (this is being defined in #14291). 

 Each data disk maxes out at 1023 GB so we need to be able to attach multiple data disks if ScratchAttached > 1023 GB. disks. 

 From documentation, the minimum fields seem to be "diskSizeGB" "createOption", "createOption" and "lun" and "vhd".    May need to extend existing support garbage collecting unmanaged disks to collect data disks.    May want to spread disks across multiple storage containers / storage accounts? 

 <pre> 
       "dataDisks": [ 
         { 
           "diskSizeGB": 1023, 
           "createOption": "Empty", 
           "lun": 0 
         }, 
           "vhd": { 
             "uri": "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd" 
           } 
       ] 
 </pre> 

 This seems to create managed disks.    Managed disks don't get automatically deleted when the VM goes away (???) but have to be garbage collected through an API https://docs.microsoft.com/en-us/rest/api/compute/disks similar to NICs. 

 Related, Azure has ephemeral OS disks: 

 https://azure.microsoft.com/en-us/blog/ephemeral-os-disk-limited-public-preview/

Back