Solidarity was briefly maintained when the Transcaucasian Federative Republic was created in the spring of 1918 , but this collapsed in May , when the Georgians asked and received protection from Germany and the Azerbaijanis concluded a treaty with the Ottoman Empire that was more akin to a military alliance .