I had a similar error with Logic Apps(Automated Tasks) with Azure VM
Open the Logic App, open the stage, check if there are any connection issues, if there is, create a new connection.
Try saving it and keep checking error tab until all connections in the Logic are fixed.