cannot access my linux virtual machine with a subdomain

Marjo Lleshi 40 Reputation points
2023-12-09T03:04:58.1333333+00:00

I have an web service that is running on linux azure virtual machine. When i browse www.publicip:portnumber/swagger/index.html it works perfectly.

Now I have created an A record test.example.al pointing to my public ip of the VM and when i try to access the web service www.test.example.al:portnumber/swagger/index.html it says it cannot be reaced.

Any suggestions?

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,776 questions
{count} votes

Accepted answer
  1. msrini-MSFT 9,291 Reputation points Microsoft Employee
    2023-12-09T03:56:53.8+00:00

    Hi, I would start with pinging the FQDN and check if that points to the right IP. if not, then you will need to check with the registrar as why the A record is not taking effect. If it does resolve to the right IP, then check your website binding as the hostname is configured so that it can respond to the request.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.