If you use Windows Azure Virtual Machines, you own the virtual machines, so you decide how you want to deploy your application. Since when you decide to use Windows Azure Virtual Machines, you can use the “Virtual Stock Image” (from the gallery), or you can deploy your own VHD, you have the freedom to choose the deployment method for your application, and that’s why there is an option on Windows Azure portal. (With Windows Azure WebSites, you don’t have that freedom, and so GIT, FTP, TFS, and WebDeploy methods are provided to those who choose to choose Windows Azure websites.)
As you are trying to port the Windows Azure web role to virtual machines, the best option comes to my mind, below which I suggested to several other partners:
- Extract the web role application from the Windows Azure Web Role solution so that you, regardless of the ASP.NET web application
- Now you can use the WebDeploy method with this application.
To configure WebDeploy on a Windows Azure virtual machine, you need to do the following:
- Install .Net 3.5 on Windows Azure Virtual Machine.
- Install Web deploy 2.0 from the download link here .
- Configure Web Deployment. Full steps can be found here.
- Create a new 8172 endpoint port as open and closed for deployment on the Internet on your Windows Azure virtual machines.
- Now use the VS2010 application and just deploy the application using the Visual Studio Publishing Wizard
Please note that if you do not want to use VS2010-based WebDeploy, you can first package your application and then RDP on your Windows Azure virtual machine and install it there. Since the Windows Azure virtual machine saves data, this step is much simpler, but very different from network deployment, but is the right choice.
source share