farmer icon indicating copy to clipboard operation
farmer copied to clipboard

Support creating disk resources and attaching them to VMs

Open Tarmil opened this issue 2 years ago • 0 comments

Currently in Farmer, VM data disks are always specified in the VM resource and created with createOption = "Empty". ARM also supports creating disks as a separate resource, and attaching them to a VM with createOption = "Attach". Something like this in Farmer would be nice:

let myDisk = disk {
    name "myvm-db-disk"
    size 1024
    disk_type Standard_LRS
}

let myVm = vm {
    name "myvm"
    attach_disk myDisk
}

Tarmil avatar Mar 30 '22 16:03 Tarmil