Azure VM (Not Classic) - Cannot deploy website using Web Deploy from VS 2013 - azure

I'm getting a time out error in VS Publish Web module when trying to validate my http connection to our Azure VM. I'm simply looking for a better way for our small dev team to deploy our MVC website to the VM other than publishing to file or publishing to FTP.
I've got Web Deploy on our Windows 2016 server, and the proper
services are running.
Remote Service is installed with Web Deploy.
Port 8172 is open and I am able to connect using Telnet from my
remote box.
I updated the pubxml file with:
<AllowUntrustedCertificate>True</AllowUntrustedCertificate>
<UseMsDeployExe>true</UseMsDeployExe>
<UserName>un</UserName>
<Password>pw</Password>
Not sure what else to try at this point, but this has been a PITA to say the least. Thanks for any input! FYI - This is not Azure Classic.
Screenshot of Error

Related

Web deployment task failed - Issue when connecting to remote server from local machine

I was trying to publish a web application to remote server (amazon windows server 2012) using Visual Studio 2012. Following is the error I am getting.
Web deployment task failed. (Could not connect to the remote computer ("amazon-server-name"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started.
I did go through several articles mentioning this issue. Also both the web management service and web deployment agent service is running on remote machine. Also in IIS’s management service part I did enable the remote connection. When try to deploy a website from server machine itself, it’s working. But from my local machine to windows server it’s showing error like cannot connect to remote server. Anyone has any clue on how to solve this issue?
Note: Microsoft Web Deploy tool 3.5 is running on both server and the local machine.
Looking forward.
What happens when you try just using FTP in Visual Studio? You mentioned "web project", I know some Visual Studio things are iffy with connecting to web servers. Just try a simple FTP into the server, then you should be able to save/test/deploy projects and files that way.
If you're still having problems, there's just an unlimited amount of problems that could cause this (hence why I don't work on Windows servers anymore). Could be ports, firewalls, security settings, folder permissions, user privileges, any combination of things. Good luck.

Web Deploy unable to validate connection

I am trying to learn how to setup Web Deploy functionality on both sides Server and host/client computer. Created a Windows Server 2012 Web Server in Hyper-V and able to access default web page in host/client computer. On server installed Web Maintenance Service, Web Deploy 3.5 and performed all the required steps e.g. "Configure Web Deploy Publishing" and added Administrator to IIS Manager Permission for the website in IIS. I disabled Firewall totally to make it work for the first time.
On client computer I created a dummy MVC Application in Visual Studio and trying to create publish profile for this app. As soon as I hit the Validate Connection I got the option to receive and save the security certificate from server but after that in gives me following warning (snapshot):
Tried doing all the steps all over but no luck.
I am open to all feedback. Thanks in advance.
Found the solution. Instead of adding publish information manually, I am suppose to use publishsetting file generated in server through "Configure Web Deploy Publishing" feature of IIS. Server address ends with file name which ends with .axd

Publishing to Azure Virtual Machine with Web Deploy

I am trying to set up Web Deploy on Windows Server 2008 R2, I have installed Web Deploy and Web Management Service.
I know that I'm connecting to the server because I see the following in the log.
2015-06-19 12:13:59 100.72.108.11 HEAD /msdeploy.axd site=IAmAFish 8172 - 86.1.148.102 - 404 7 0 93
However, I'm receiving the standard error about checking that Web Deploy is running.
I suspect permissions are the issue and I'm currently trying to find 'IIS Manager Permssions' in IIS manager, after selecting the site. It's not there. How do I add this feature to IIS manager so that I can manage permissions?
It turns out that the version of Web Deploy installed by Web Platform Installer does not include the full suite of tools and should not be used for this.
Instead, download Web Deploy from:
http://www.iis.net/download/webdeploy
Be sure to restart IIS Manager to see the new icons.

How to create publishing profile for azure virtual machine?

How to create publishing profile for a website running on azure virtual machine?
I know how to do it for Azure Web Site, but can this be done if I have IIS running on a VM in azure?
I also have a console application running using task scheduler on this VM, it would be nice to automate that deployment too.
( After working with Rails and Php frameworks, I miss the common config file used by the website and CronJob to connect to the DB)
You need to set up Webdeploy in the azure VM. it is same as an on-premises server.
Web Deploy Installation.. You need to install prerequisites - .net framework.
Configuring IIS 7 with webdeploy / Or with IIS8
Set up endpoints on azure vm to do webdeploy. Port 8172 for Webdeploy.
Then you can create a publish profile in Visual Studio 2012/13 to deploy to this endpoint.
http://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx
or You can do it using Powershell scripts.
sample-
http://gallery.technet.microsoft.com/scriptcenter/Deploy-a-Web-App-to-Two-99f1a3bc

Cannot Connect to Windows Azure VM (Server 2012 R2) Web Deploy Service

I can't seem to be able to deploy a site to a windows server 2012 r2 running IIS and Web Deploy in Azure VM. I have verified that the port is open, the credentials are correct and the site name as well. I tried using http: and https: also tried using msdeploy.axd end point and the MSDEPLOYAGENTSERVICE one nothing. Check is the services are running and if I can connect to the machine which at can on port 80 to the default site. Tried connecting from multiple connections I get the same result...
Could not connect to the remote computer ("<computer name>.cloudapp.net"). On the remote computer make sure that Web Deploy is installed and that the required process ("Web Deployment Agent Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE. Unable to connect to the remote server.
After dealing with this for about an hour now, I figured out how to fix this on my Azure Virtual Machine.
First the obvious
Check that port 8172 (if you're using default settings) is open in your firewall
Check that the processes MsDepSvc and WMSVC are running.
Check that the site name is correct.
Management Service
In ISS, at the root level of the server, check your settings under Management Service.
It should have Enable Remote Connections checked:
Did you download the full package
This was the one that got me, I hadn't installed everything.
On the bottom of the WebDeploy page: http://www.iis.net/downloads/microsoft/web-deploy
You can download the full package, and then just install everything.
You don't mention if you have an endpoint configured for your Azure VM. If not, make sure you create an endpoint with a private port of 8172.
EDIT: Here is a troubleshooting guide for web deploy that includes the error message you've encountered. Additionally, from my own experience I have managed to mistype the site name and not install .NET and seeing similar errors.
Helpful but in the end in our case it was TLS mismatch. Check both machines can do TLS 1.2 if you are forcing it. Have put more detail here https://fuseit.zendesk.com/hc/en-us/articles/360000328595. Cheers

Resources