I'm using azure-libraries-for-java (https://github.com/Azure/azure-libraries-for-java/) to handle some azure management stuff, and one of the features I'm not able to figure out is hot to attach a managed disk to a vmss instance.
This action can be done very simply with az cli: az vmss disk attach --disk {diskid} --instance-id 0 --resource-group MyResourceGroup --lun 0
It can also be done in a slightly more complicated way using the rest API as described here: https://github.com/Azure/vm-scale-sets/tree/master/preview/disk
But I can't figure out how to replicate either of these methods using the java SDK. Hopefully someone is more familiar with it to help understand if or how it can be done!
Thanks.