He had its inhabitants deported to a city in southern Iran, which he named "Kavad's Better Amida" (Weh-az-Amid-Kawad). He left a garrison in Amida which included his general Glon, two "marzbans" (margraves) and 3,000 soldiers. The Byzantines failed in their attempt to recapture the city. Kavad then tried unsuccessfully to capture Edessa in Osroene. In 505 an invasion of Armenia by the Huns from the Caucasus led to an armistice; the Byzantines paid subsidies to the Iranians for the maintenance of the fortifications on the Caucasus, in return for Amida. The peace treaty was signed by the Ispahbudhan aristocrat Bawi, Kavad's brother-in-law. Although Kavad's first war with the Byzantines did not end with a decisive winner, the conquest of Amida was the greatest accomplishment achieved by a Sasanian force since 359, when the same city had been captured by Shapur II.