I had some fun getting to the bottom of this error and I found some potential issues that can cause this error to pop up that might not be apparent. We had the Azure AD user account configured for Azure AD Join and the user was not over the limit of devices they could enroll (default 5). What we did run into is two items that were generating the error.Don’t perform Azure AD Join with the default administrator account.Make sure the user performing Azure AD Join on the device is a local administrator.FYI: Also make sure the machine is not domain joined.Hope this helps your experience go a little more smoothly.
Azure AD Join Error: System policies prevent you from connecting to a work or school account.
By Kevin Kaminski
Planning Azure infrastructure work?
Big Hat Group architects Azure foundations with Terraform, security hardening, and cost optimization.
Explore Azure ConsultingGet the Big Hat briefing
Our take on AI, Azure, and modern development, every two weeks — written by a consultant who builds this stuff, not a marketing team.