Tuesday 5 December 2017

Publish Profile of WebApp in Microsoft Azure.

In this article, We Will discuss about What is a Publish Profile in Windows Azure and What Code is inside of that Publish Profile.

When we Will Create a WebApp in Windows Azure for that automatically Publish Profile Will be Created.

When We will open the WebApp then on the top side "Get Publish Profile" is present and We can download this file from there.

Publish Profile is a kind of file which will be used in Publishing of Web Project and also Publishing of Web Jobs.

The Publish Profile looks like this,


<publishData>
<publishProfile profileName="demo - Web Deploy" publishMethod="MSDeploy" publishUrl="demo.scm.azurewebsites.net:443" msdeploySite="demo" userName="$demo" userPWD="igQqdPY2pjbF6mTvo5WmjBpualiyqxBWgjgkaA0yc8tEo7Kbun7bRnddRvMb" destinationAppUrl="http://demo.azurewebsites.net" SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="http://windows.azure.com" webSystem="WebSites"><databases />
</publishProfile>
<publishProfile profileName="demo - FTP" publishMethod="FTP" publishUrl="ftp://demo.ftp.azurewebsites.windows.net/site/wwwroot" ftpPassiveMode="True" userName="demo\$demo" userPWD="igQqdPY2pjbF6mTvo5WmjBpualiyqxBWgjgkaA0yc8tEo7Kbun7bRnddRvMb" destinationAppUrl="http://demo.azurewebsites.net" SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="http://windows.azure.com" webSystem="WebSites"><databases />
</publishProfile>
</publishData>

This is Just a Sample Publish File and these are automatically generated when we create one WebApp.

The extension of Publish Profile is ".PublishSettings".

Publish Profile File Contains 2 types of Profile as 
1/ Web Deploy
2/ FTP

Each of the Profile Contains it's publishMethod, publishUrl, userName,userPWD etc.

When we publish Web Project at that time Web Deploy profile automatically Selected and When we publish Web Jobs at that time FTP profile automatically Selected.

0 comments:

Post a Comment