@Pengfei Cui (1000048711) ,
Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.
To understand your question, you want to use Azure AD to manage local accounts on the VM. In that case, Azure AD can't manage your VM local accounts, and you have to log into the server to manage the users/groups. But, if want Azure Active Directory (Azure AD) to manage SSH logins for Ubuntu virtual machines (VMs) on Azure then the answer is yes. More information can be found at - https://ubuntu.com/tutorials/using-azure-ad-to-manage-ssh-logins-to-ubuntu#1-overview
Hope I answered your question.
----------
Please "Accept as Answer" and Upvote if any of the above helped so that, it can help others in the community looking for remediation for similar issues.