Akanji, who began his career with FC Basel, links up with former Dortmund team-mate Erling Haaland following his move to City earlier this summer.
He is the fifth signing Guardiola has made during this transfer window as City look to win a third successive Premier League title and a first Champions League trophy.