Yandex, Russia's largest Internet company, has agreed to sell most of its Russian operations to a consortium. The deal marks Yandex NV's exit from Russia amid tensions over the invasion of Ukraine.