I was trying to create a snapshot of a virtual machine using powershell (Creating snapshot of VM in Azure) on Azure. For taking the snapshot of a vm I have to take backup of both OS disk and Data disk. When I checked the disk information from Azure portal it shows only OS disk as 30GB and there's no information about data disk. The powershell script also fails to take backup of data disk.
I have created an A1 type of Linux machine which has data disk of 70GB. I connected to VM using ssh and executed df -h
which is showing
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 29G 2.4G 25G 9% /
tmpfs 841M 0 841M 0% /dev/shm
/dev/sdb1 69G 180M 66G 1% /mnt/resource
What has to be done in order to make this /dev/sdb1
listed or detected through cmdlet? When I attach a data disk and run the snapshot script it's taking backup of both of os disk and the newly created data-disk. Also, it's shown in the Azure vm disks list.
Please give me some information regarding this.