@ai second It seems you have your own on-premises MDM server where you are trying to enroll your devices. Looking at the error message the service seems to be looking for the Terms Of use URL, can you confirm if you on-prem MDM server has a correct TOU URL. For Intune it is something like this :