Generalizing removes machine specific information so the image can be used to create multiple VMs. Once the VM has been generalized, you need to let the platform know so that the boot sequence can be set correctly.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/generalize