Clone your web app content between two azure web apps or slots

Once you have a stage web app (or deployment slot ) , you need an easy way to port content from your primary web app to stage web app or slot . Here is a tool that allows you do exactly this ..


Download the tool from Release folder. Before running the tool download the source and destination web app’s publish settings file from the Azure Portal . If your application has a database , update SQLServerDBConnectionString (if using sql azure databse) or mySQLDBConnectionString ( if using mysql datbase) to point to remote database associated with the app

   AzureWebAppClone.exe -s path-to-source-publish-settings -d path-to-dest-publish-settings


AzureWebAppClone.exe -s "c:\publish\site1.publishsettings" -d "c:\publish\site2.publishsettings"

Sample Publish settings file

You can download the publish settings files from the Azure portal and use this template to create your own

 <!-- Web deploy publish method is used by this tool -->
   <publishProfile profileName="phpsimplesite-stage - Web Deploy" 
     publishMethod="MSDeploy" publishUrl="" 
     msdeploySite="mysitename" userName="$mysitename"         
     destinationAppUrl="" SQLServerDBConnectionString="" 
         <add name="default" connectionString="Database=wordpress2stage;Data;User Id=b1e3c01216e681;Password=22a809f4" providerName="MySql.Data.MySqlClient" type="MySql"/>

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s