To update your legal name, including your middle name, you need to follow the specific procedures set by the platform you are using. If you are referring to Microsoft Learn, your legal name must match the name on the government-issued ID you'll present at your exam appointment. If you've already registered for an exam, changing it requires Microsoft support approval.
If you are looking to update your name in Microsoft Entra ID, ensure that the name you enter reflects what users would expect to see on their profiles. You might also want to consider syncing data from your HR system if applicable.
For specific steps, you may need to contact Microsoft support for assistance, especially if the update involves verification processes.
References: