Hi EMV-4590,
I had this issue with the windows task scheduler on a VM. The reason for the task failure was a change in the password of the system user who was configured when the task was created. This could be your issue if the VMs are being created using incorrect user details. You can either confirm this and set the correct system user credentials on VM creation, or retrospectively:
1) Go to properties of the task
2) Under General tab, click on "Change User or Group..."
3) Enter the username in the field "Enter the object name to select"
4) This will ask for Authentication, provide your credentials
--If the reply is helpful, please Upvote and Accept as answer--