How can I log into an azure VM via my Mac?
You just need a Remote Desktop Client.

Microsoft has an official one called Microsoft Remote Desktop, that is free. It's available on the App Store.

There are other alternatives as well, such as CoRD.