If you want to backup and restore your existing virtual machine, probably you would need to create managed image of generalized VM Before making any changes, make sure to copy all the valuable data that sits on the personal folder such as C:\Users\asish\Source\Repos to another location for instance C:\Backup. As per the Azure documentation “Sysprep removes all your personal account information(which includes data under C:\Users) , among other things, and prepares the machine to be used as an image”