It is not known when Yang Lian was born. He was the oldest son of Yang Pu, but historical records did not indicate who his mother was. In 928, shortly after Yang Pu had claimed the title of Emperor of Wu at the behest of the late regent Xu Wen, he created his brothers, his sons, and one of his nephews imperial princes, and Yang Lian was created the Prince of Jiangdu. In 930, he created Yang Lian crown prince. In spring 937, when Xu Wen's adoptive son and successor Xu Zhigao was deep in the process of taking over the throne from Yang Pu, Xu Zhigao gave a daughter in marriage to Yang Lian to be his crown princess.
In winter 937, Yang Pu passed the throne to Xu Gao, ending Wu and starting a new Southern Tang state with Xu Gao as its Emperor Liezu. Emperor Liezu continued to honor Yang Pu with an imperial title, while creating Yang Lian the Duke of Hongnong and giving him the honorary titles of military governor of Pinglu Circuit and Zhongshu Ling. When the new Southern Tang's emperor's former chief strategist Song Qiqiu, wanting to show himself faithful to the new regime, suggested that Yang Pu be moved away from the former Wu capital Jiangdu, that the marriage between Yang Lian and his wife, now carrying both the titles of duchess and Princess Yongxing, be terminated, and that Yang Lian be exiled, the new Southern Tang emperor did not accept any of those suggestions. Indeed, the former crown princess was distressed whenever people referred to her by her title of Princess Yongxing. This caused her brothers to be displeased with her, but Emperor Liezu stated: Yang Pu died around the new year 939 — a death for which the Southern Tang emperor was much suspected of. Shortly after, in summer 939, Emperor Liezu had the Yang clan members confined to Yongning Palace in Tai Prefecture, including Yang Lian's cousin Yang Gong the military governor of Kanghua Circuit. Yang Lian, however, did not appear to be confined, and shortly after was offered the position of military governor of Kanghua. He declined at that time, asking to serve out the three-year mourning period for Yang Pu, and the Southern Tang emperor agreed. However, it appeared that Yang Lian did accept the posting to Kanghua eventually, for he was referred to as the military governor of Kanghua in 940. . In spring 940, Yang Lian went to pay respects to his father's tomb, Pingling. As he was returning from Pingling, one night, when he was very drunk, he died in the boat. Emperor Liezu posthumously created him the Prince of Hongnong and gave him the posthumous name of Jing. Princess Yongxing returned to the Southern Tang palace at Jinling, wore mourning clothes, and refused to remarry for the rest of her life, which did not last long.