Does this still work? I think MSFT Azure bans all cryptocurrency mining activities.
Indeed. Terms are updated:
You will not facilitate, engage in, or participate in any use of Azure services, for crypto currency mining, denial of service attacks, spamming, or illegal activity, and/or any use that could cause harm to Microsoft or others, and will enforce strong internal controls to prevent the same.
Source:
https://azure.microsoft.com/en-us/offers/ms-azr-0029p/So newer subscriptions will be disabled when performing crypto mining.