These ones could help.
https://support.microsoft.com/en-us/windows/switch-from-a-local-account-to-a-microsoft-account-395203bf-9f1b-eb24-b042-5b8dae6c1d20
https://support.microsoft.com/en-us/account-billing/join-your-work-device-to-your-work-or-school-network-ef4d6adb-5095-4e51-829e-5457430f3973
--please don't forget to upvote
and Accept as answer
if the reply is helpful--