Manchester City are closing in on an agreement to appoint Hugo Viana as their next director of football, a source has told ESPN.