How to: Implementing Storage Spaces insides Azure Virtual Machines

Within an Azure Virtual Machine, you should never store your (personal) data on the C: drive or the temporary disk. You can attach new storage disks to the virtual machine, how many disks depends on the VM size you’ve choosen.

View all VM sizes in Microsoft Azure:
https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-windows-sizes

In my example I’ve choosen the ‘DS1v2’ VM size, so I can attach two extra (premium storage) disks. Because the maximum size of an disk in Microsoft Azure is 1023 GB, I’ve created multiple disks. Both disks are attached to the virtual machine and we’re going to implement Storage Spaces within the virtual machine. Storage Spaces is software defined storage (SDS) from Windows Server 2012 R2 and above.

Storage Spaces is a built-in Windows Server Role. When combining all the data disks, you can create one, or more, big data volumes in your Windows Virtual Machine. Extremely powerful for example file servers.

1.) First of all I’ve created a new virtual machine using the Azure Portal

2017-02-27_14h41_01    2017-02-27_14h42_11    2017-02-27_14h44_48

2017-02-27_14h45_06    2017-02-27_14h57_06

2.) Next I’ve created two new disks (premium storage – SSD) with tthe size of 1023 GB.

2017-02-27_14h57_22    2017-02-27_14h58_22    2017-02-27_15h00_04

3.) Next I’ve logged in into the new created virtual machine and configured Storage Spaces.

2017-02-27_15h01_25    2017-02-27_15h02_08    2017-02-27_15h04_49

2017-02-27_15h08_16    2017-02-27_15h08_29    2017-02-27_15h09_04

2017-02-27_15h09_17    2017-02-27_15h09_27    2017-02-27_15h09_37

2017-02-27_15h09_57

4.) The next step is to create a new virtual disk

2017-02-27_15h10_03    2017-02-27_15h10_26    2017-02-27_15h10_35

2017-02-27_15h11_00    2017-02-27_15h11_08    2017-02-27_15h11_28

2017-02-27_15h11_48    2017-02-27_15h12_01    2017-02-27_15h12_10

2017-02-27_15h12_24

5.) The final step is to create the new volume for storing your data on.

2017-02-27_15h12_31    2017-02-27_15h12_43    2017-02-27_15h12_52

2017-02-27_15h13_03    2017-02-27_15h13_24    2017-02-27_15h13_36

2017-02-27_15h14_02    2017-02-27_15h14_14    2017-02-27_15h14_35

As you can see, there’s a new volume of 2 TBwithin the virtual machine. If you’re changing the size of the virtual machine, it is also possible to add some more disks to the virtual machine and extend the Storage Spaces with more terabytes!!

2017-02-27_15h14_52