@Anonymous
Crypto mining with Azure is restricted on certain subscriptions types, including the Azure Free Account and the Azure for Students account.
Please check Azure Legal Information here in this link - https://azure.microsoft.com/en-us/support/legal/
However, on Pay-as-you-go subscription type it does not currently have any terms that prohibit cryptocurrency mining.
Below are few posts which has more details on this topic.
https://learn.microsoft.com/en-us/answers/questions/558011/minning-cryptocurrency.html
Hope that helps.
Please 'Accept as answer' if the provided information is helpful, so that it can help others in the community looking for help on similar topics.