@Natália Lima, Thanks for posting in Q&A. For the devices in lab which will be accessed by many students, we will configure it as a shared device. For example, configure shared multi-user device which allow guest or domain account to login.
https://learn.microsoft.com/en-us/mem/intune/configuration/shared-user-device-settings-windows
Or configure Windows Autopilot self-deploying mode which can access with no user interaction.
https://learn.microsoft.com/en-us/autopilot/self-deploying
But from your description, it seems you want to allow the Account in Microsoft Entra to login the device. If so, shared device can not support. We can consider do Microsoft Entra join which can allow to sign in using any organizational Microsoft Entra account. Here is a link with more details.
https://learn.microsoft.com/en-us/entra/identity/devices/concept-directory-join
Hope the above information can help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.