Migrating WF Application to Azure via Windows Azure Accelerator for Web Roles

While wrapping up my demos for my presentation “Moving WF applications to Azure”, I decided to repackage my demos using Windows Azure Accelerator to conserve the number of Web Roles I was using in Azure. 

A quick summary of the issue is as follows:

  1. Create a Windows Azure Accelerator project, and upload it to Azure (Steps performed according to instructions provided by WAA)
  2. From the base address (i.e. <application>.cloudapp.net), create a IIS Site name.  I just typed a random, non-active hostname for the Hostname, as I was intending to use the test link instead.
     image
  3. Create a Windows WF 4.0 project, and browse to it. The generated screen with a link to the WSDL is displayed.image
  4. Publish the WF Application to the IIS web site.  It doesn’t matter if the deployment is marked as an IIS application.image
  5. Browse to the test site where a page showing that metadata publishing is disabled. (i.e the /test/testwf/ location, rather than from the host name)image
  6. No amount of web.config changes will enable the metadata publishing, such as an example below.image

Logging onto the Azure Web Role instance revealed the following IIS setup.

image

I’m guessing that the test sites use URL Rewrite, but somehow the web.config is not picked up.

What finally worked for me is as follows:

  1. Get a DNS Alias (CNAME) to point to my base cloud application, e.g. using a free domain name from no-ip.com.image
  2. Reconfigure WAA to accept the new Host Nameimage
  3. Browse to the WF Service using the Site address instead of the test site address, and voila, the no configuration setup now works.
  4. image

I hope this helps someone save a couple of hours of sleep.  Now onto figuring out Azure Composite Applications.

Advertisements

One response to “Migrating WF Application to Azure via Windows Azure Accelerator for Web Roles

  1. Pingback: Presentation: "Moving WF Applications to Azure” | Odie's Blog

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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