Thanks for the question! As far as I know, the answer is yes, you can mine on Azure VMs. I can't find anything that explicitly states you cannot. This thread from 2018 supports this.
As for advice - as stated in the other thread, I'd recommend using a VM powered by a hefty GPU such as the NC Series. Here is a link to a doc that describes the different NC Series configurations. Also here is a link to the pricing calculator so you can see how much it would cost you. Again I don't know if it will be profitable when you factor in the cost of the subscription but hopefully, this information will help you make a good decision.
If this answer helped answer your question please mark it as accepted. Thanks for engaging the Q&A community, I'd be interested in learning what your ultimate conclusion ended up being. Have a good one.