Azerbaijan – a secular nation with a majority-Turkic and majority-Shia Muslim population – was briefly independent (from 1918 to 1920) following the collapse of the Russian Empire; it was subsequently incorporated into the Soviet Union for seven decades. Azerbaijan remains involved in the protracted Nagorno-Karabakh conflict with Armenia.
https://www.cia.gov/the-world-factbook/countries/azerbaijan/