After Maria Beatrice d'Este 's death at Vienna in 1829 , Massa and Carrara were added to the Duchy of Modena .
At her death in her palace in Vienna in 1829 , Massa and Carrara were added to the Duchy of Modena which were subsequently given to her son .