The count-bishops had to defend their area against the dukes of Savoy . The count-bishops then struggled to defend their area against the dukes of Savoy , so that the medieval history of the Valais is inextricably linked with that of the diocese of Sion .