If you just updated to the new launcher:
Just copy launcher_profiles.json to launcher_profiles_microsoft_store.json.
PowerShell implementation of this:
cp $env:APPDATA/.minecraft/launcher_profiles.json $env:APPDATA/.minecraft/launcher_profiles_microsoft_store.json -force