Was it illegal for Russia to invade Ukraine in February 2022?

Feb 28, 22

Russia should have tried to settle the dispute with Ukraine by peaceful means, before announcing the attack.

In accordance with Articles 1 and 2 of the UN charter, the members of the UN are expected to resolve their disputes by peaceful means so that international peace, security, and justice are not endangered.