Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)

like image 742
Xavier John Avatar asked Mar 07 '14 19:03

Xavier John


People also ask

How do I get Azure publishing profile?

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.

Where is publish profile in Azure?

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.


1 Answers

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

like image 131
Aravind Avatar answered Sep 21 '22 07:09

Aravind