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)
In the Azure Management Portal, select the Website you wish to publish to; Use the Get publish profile command in the Azure Portal to download a . publishsettings file for the web site. This file contains all of the information necessary to publish to the web site.
In the Azure portal, navigate to the dashboard of your web site. Under the quick glance section click the Download publish profile link and save the file. In WebMatrix, open the site you want to publish. Click the Publish button.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With