Medical device maker ResMed Corp. has promoted from within to replace global general counsel David Pendarvis, who retires June 30 after 21 years as legal chief.