Installing SSL on Azure VM that has a webapp running on microk8s

prettycold 21 Reputation points
2022-11-17T07:02:41.683+00:00

I have an Azure VM (Ubuntu) where I deployed my application (uses python flask and angular) in a microk8s. All this while it had the default domain name. Recently I purchased a domain in godaddy, and changed the DNS to point to the new domain. Now I need to add https to the domain, so I purchased SSL certificate in godaddy. Since mine is not Azure App Services, I'm not sure how to install the certificate on the VM against this domain. All links that I came across was for Azure App services. Any help would be appreciated.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,332 questions
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 37,846 Reputation points Microsoft Employee
    2022-11-17T17:13:17.97+00:00

    @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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.