I am Azeri here. I can give u information on that. Caucasian Albania is different from Modern Balkan Albania. And Caucasian albania is different from Albania in Caucasus as well.
After the collapse of Seleucids a guy named Atropat, who was one of the representators of Alex from Macedonia, and lived in Southern Azerbaijan - which is Northern Iran today, declared those lands independent. At the same time, in north, Alban tribes together with Nakhch, Kaspi and other non-Iranian, but local Caucasian tribes. So on the land of todays Azerbaijan Albania was created - Not Caucasian Albania yet. This lived till Sassanids, some times free and some times paying tax to Parthia not to invade them. In 60 's BC Pompei Magnum attacked and later even Mark Antony, but mostly suffered Atropatena, which in south. Sassanids invaded Atropatena in 224 and Albania in 226. After that it was kinda chaos in Azerbaijan, becouse of numerous Armenian, Local and Hunnic tribes revolts against the empire. In late 5th century, A guy from Subar Turkish tribe declared half-independent country Caucasian Albania, which also called Girdman. It lived till Arabs came in 658 and fought several wars against Byzans, Khazars and Arabs.