Hi,
From inside the VM you have probably opened a view that shows the cpu usage only on one of the cores. The graphic from Azure shows average CPU across all cores of the VM.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.