Addition. I've created a custom image with the option "I have run sysprep on the virtual machine." set to On.
This results in the following message: The custom image will include the OS disk and all the data disks attached to the virtual machine.
Thing is, as far as i know, i haven't run anything resembling sysprep on the machine. In the end, when i deploy a new vm based on this ci, i get the following error:
OS Provisioning for VM 'reitseeskens002' did not finish in the allotted time. However, the VM guest agent was detected running. This suggests the guest OS has not been properly prepared to be used as a VM image (with CreateOption=FromImage). To resolve this issue, either use the VHD as is with CreateOption=Attach or prepare it properly for use as an image:
- Instructions for Windows: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/
- Instructions for Linux: https://azure.microsoft.com/documentation/articles/virtual-machines-linux-capture-image/
So i'm still left with a useless VM i think or at least one that's not trusted at first sight.