 On this occasion, he was appointed by the Shah the commander-in-chief of the Persian army and governor-general of Azerbaijan.In 1722, he was appointed as commander of the élite "gholam" corps ("qollar-aghasi").When the Ottoman armies invaded Georgia in 1723, Bakar attempted to negotiate, but eventually followed his father in a Russian exile in July 1724.