SKILLS & TRICKS
Microsoft has rolled out Azure Managed Disks this month and its available for all to simplify the management, scaling, sizing of disk, etc for VMs.
Since i am still pretty much a .Net guy so download the Azure Management Libraries for .Net to manage Managed Disks.
GitHub Link: https://github.com/Azure/azure-sdk-for-net/tree/Fluent
Time to play :)
Virtual Machine with Managed Disk
Things to note: Its quite simple, easy and quick to create managed disks without specifying all the disk details and you don't need to worry about Managing Storage Accounts anymore. Use define()...create() method chain to create a VM with Managed Disk for OS and explicit Managed Disks for data.
VM Scale Set with Managed Disks
var vmScaleSet = azure.VirtualMachineScaleSets
Attach Empty Managed Disk to VM
Like mentioned above, by using define().. create() you can accomplish this.
var dataDisk = azure.Disks.Define(diskName)
Again define()... create() method, this time to attach the empty Managed Disk to VM
var linuxVM2 = azure.VirtualMachines.Define(linuxVM2Name)
To detach Managed Disks and attach new Managed Disks, you have to use an update() … apply() method chain
VM from a Specialized VHD
var linuxVM4 = azure.VirtualMachines.Define(linuxVmName3)
VM using a Custom Image
var virtualMachineCustomImage = azure.VirtualMachineCustomImages
Custom Image with define()...create() method
var linuxVM4 = azure.VirtualMachines.Define(linuxVM4Name)
VM Using Specialized Disks from Snapshot
// Create a Snapshot for an operating system disk
Convert VM to Use Managed Disk with a Single Rebot
var linuxVM6 = azure.VirtualMachines.Define(linuxVM6Name)
Enjoy guys and plenty more is coming :)