HOW HTTPS To AZURE VM DNS Name

Krishnamoorthy Hegde 40 Reputation points
2023-11-10T06:33:55.7166667+00:00

I have a Azure Virtual Machine, I am accessing this from DNS Name

http://XXXXX.southindia.cloudapp.azure.com:1234 (1234 is port number)

Is it possible to change http to https like below

https://XXXXX.southindia.cloudapp.azure.com:1234 (1234 is port number)

If possible ? How to do this?

Please anybody suggest me.

Thank You

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

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 26,211 Reputation points
    2023-11-10T07:16:01.01+00:00

    Hello Krishnamoorthy Hegde

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    Yes, it is possible to change the URL from HTTP to HTTPS for your Azure Virtual Machine. Here are the steps to do so:

    -First, you need to obtain an SSL certificate for your domain. You can either purchase a certificate from a trusted certificate authority or create a self-signed certificate. If you choose to create a self-signed certificate, you will need to install the certificate on your VM.

    -Next, you need to configure your web server to use HTTPS.

    -Finally, you need to update your DNS record to point to your VM's public IP address. You can do this by creating an A record in your DNS zone that points to your VM's public IP address.

    Once you have completed these steps, you should be able to access your website using HTTPS with your DNS name and port number. Just replace "http" with "https" in your URL and you should be good to go.

    Hope this helps.


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.