There are a number of breaking changes that have been introduced in this version of AzureWebFarm since v0.9.1.3. Following are the instructions to upgrade.
Update-Package AzureWebFarm
Check that Probe.aspx and Probe.aspx.cs got copied to your web project.
You need to upgrade your machine to the Azure 1.8 SDK and allow Visual Studio to update the cloud project - this gives you a faster deployment time and support for Windows Server 2012.
You need to add a new configuration setting to your .cscfg file(s):
<Setting name="SyncEnabled" value="true" />
This is to allow for the ability to selectively disable syncing while the role is running. You might want to do this if there is a problem with Azure Storage or you want to rotate your keys etc.
You can also optionally upgrade to Windows Server 2012; you can do this by simply changing the osversion attribute at the top of the .cscfg file to the value 3 (this requires that you have Azure SDK 1.8 installed). Note: This adds support for .NET 4.5 and removes support for .NET 3.5. For more information see: http://blogs.msdn.com/b/avkashchauhan/archive/2012/10/29/using-windows-server-2012-os-with-windows-azure-cloud-services-and-net-4-5.aspx.
You need to make the following changes to your .csdef file(s):
-
Remove the
<Startup>section (you can then remove theStartupfolder from your Web project as well). -
Add the following section inside
<ServiceDefinition>, before<WebRole>: -
Replace your port 8172
<InputEndpoint>with the following: -
Add the
WebDeployplugin to<Imports>as below: -
Add
SyncEnabledto<ConfigurationSettings>:
You also need to update your web.config and app.config files in your web project to redirect Microsoft.WindowsAzure.Diagnostics and Microsoft.WindowsAzure.ServiceRuntime to 1.8.0.0.
<dependentAssembly>
<assemblyIdentity name="Microsoft.WindowsAzure.Diagnostics" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.8.0.0" newVersion="1.8.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.WindowsAzure.ServiceRuntime" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.8.0.0" newVersion="1.8.0.0" />
</dependentAssembly>
You should also check that the Microsoft.WindowsAzure.Diagnostics dll is 1.8.0.0 and copy local and the Microsoft.WindowsAzure.ServiceRuntime dll is 1.8.0.0 and not copy local.