Workaround for Publishing LightSwitch App to Azure Web Sites (Error: Web deployment task failed. (Modifying application pool properties is not supported by this server environment. #ERROR_NOT_SUPPORTED))

Some customers recently came across an issue where publishing a LightSwitch application to an Azure Web Site resulted in a deployment error:   Error    1    Web deployment task failed. (Modifying application pool properties is not supported by this server environment.   Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_NOT_SUPPORTED.)    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets   This is being caused by a…