Due to the illness of his elder brother Yoshiyuki YAMANA, he became the head of Moroyoshi's family line and became a provincial constable for Tango Province and Izaumo Province.
兄の山名義幸が病のため師義の家系の長となり、丹後国・出雲国の守護となる。