I am currently overseas and purchased my first property while out of country.
In reality it all depends on your intended level of involvement. I began the whole process from scratch while 7000 miles away and intended to be fairly hands off.
Just find a team you can trust and go from there. I started by finding a property manager. That led to my realtor which led to my loan broker. Rockstars really do know rockstars. Of course I checked and vetted them all and ensured they are all familiar with investors or invest themselves.
After pitches it really is up to you if you want to sit back and “collect checks” or if you want to message your PM and press them to do specific things you want.
I will say do not rush to buy before you leave. Take time to get your team together and when the deal comes be ready. I’m sure you’ll have a printer/scanner wherever you are and a notary. That’s all you need to get it done.
Let me know if I can help further!