I have a problem with creating VM instances from a VM image.
I have created an image and prepared it before the actual creation with sysprep.exe.
I have some files on it, a scheduler, IIS etc. set up.
When i created the new instance all the files were there, but when i first logged in it seemed as a fresh copy of windows was installed, also, the scheduler did not fire off.
When i double clicked on the file that was suppose to start my app instead of starting it, it requested an install. (the app was deployed via visual studio and installed on the VM before the image was created).
The Scheduler that is suppose to start the app on startup should run about 30 sec after windows booted, and to make it work i had to edit registry to work.
The problem is that none of those things happened. The expected behaviour is that i would get a copy of the VM in the last state before the image was created, and that the scheduler and the app would run on start. However that does not happen.
Does anyone know why? Or can anyone help so i could actualy created the instances of VM and expect to work as i just copied all the options from the previous one?
I am testing VM scale sets together with load balancer so i could scale to more VM-s if one of the VM-s would be overburdened, but the instances dont behave as expected.