On Visual studio during publish error message: The specified virtual machine does not have a domain name associated with any public Ip address.

Maurizio Landolfi 21 Reputation points
2020-06-02T13:26:30.107+00:00

Hello, i've created 2 azure virtual machine, windows and linux.
When in visual studio during publish action i select one of them i receive a message: The specified virtual machine does not have a domain name associated with any public Ip address.
I even added the Ip of the server to DNS.
What the problem?
Maybe is Visual studio? I have last version and everything upgraded.
So i cannot use virtual server azure.
There is another way to publish (FTP for example?)
Thanks

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

Accepted answer
  1. Dave Patrick 426.1K Reputation points MVP
    2020-06-02T13:28:40.88+00:00

    This doesn't happen by default. When you create a virtual machine (VM) in the Azure portal, a public IP resource for the virtual machine is automatically created. You use this IP address to remotely access the VM. Although the portal does not create a fully qualified domain name, or FQDN, you can create one once the VM is created. This article demonstrates the steps to create a DNS name or FQDN.

    Something here may help.

    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/portal-create-fqdn

    --please don't forget to Accept as answer if the reply is helpful--

    --------------------------

    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.


1 additional answer

Sort by: Most helpful
  1. Leon Laude 85,651 Reputation points
    2020-06-02T13:28:02.303+00:00

    Hi,

    Q&A currently supports the products listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).

    You can reach the experts in the dedicated Visual Studio forum over here:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio

    You may also follow the guidance here:
    Microsoft Azure: Use Visual Studio to Deploy a Virtual Machine
    https://petri.com/microsoft-azure-use-visual-studio-deploy-virtual-machine

    (Please don't forget to accept helpful replies as answer)

    Best regards,
    Leon