I am attempting to publish a Visual Studio 2019 project to an Azure Virtual Machine for the first time. I right click the Project and select Publish. Then choose Azure Virtual Machines for the target, sign into my Azure account and choose the virtual machine name off the list. Once I click OK a message comes up that says
The specified virtual machine does not have a domain name associated with any public IP address
My virtual machine has a live public IP address and a DNS name is assigned to it. If I go to a web browser I can type in http://'ip address'
or http://'dns name'
and both will load the hosted website.
Any ideas on what else I can try?