@prettycold
I understand you have an Azure VM running your web application and a third party SSL cert. You want to enable HTTPS on your VM but are not sure the process in Azure. Please correct me if I am misunderstanding the issue.
Once you have port 443 open for your NSG all the configuration for the SSL needs to be done in your web application. There is no specific Azure configuration needed for this. I am sharing a few resources below which might be helpful for your setup.
https://stackoverflow.com/questions/29458548/can-you-add-https-functionality-to-a-python-flask-web-server
https://blog.miguelgrinberg.com/post/running-your-flask-application-over-https
https://www.youtube.com/watch?v=Gdys9qPjuKs
Hope this helps! Let me know if you run into further issues or need assistance.
-------------------------------
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.