For Azure VMs and Arc servers the extension is the correct one. The agent is for Windows clients (not servers) that are not Azure VMs or Arc servers.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.