Remote Web Deployment to Azure VM

Visual Studio Environment offers different types of web-site publish. One of them is Web Deployment. This option allows user to directly publish application to a server IIS remotely. However there are steps to be followed before using this feature:

  1. Install web deploy in the Azure VM. You need to choose full installation, the deployment related service will automatically be started( or you can run the command net start msdepsvc) Link http://technet.microsoft.com/en-us/library/dd569059(v=WS.10).aspx
  2. Default port for web deploy is 8172. You can either choose to use it or define your own port. You can set this port via IIS> Click Server> Management Service ( you need to stop service to configure)
  3. Add endpoint using Azure Portal. Click Virtual Machine and select your machine. Click endpoints and add new TCP endpoint, both public and private ports should be 8172
  4. Right click your project and click publish. Choose Web Deploy. In your server settings, server name should be your virtual machine path with 8172 port. 

No comments:

Post a Comment