It's dynamic, no need to relog! Look under input preferences for "Use azerty layout instead of qwerty layout"