Search code examples
wcfrestazurewebrole

How to convert WCF REST 4.0 service so it runs in Azure web role?


i have written a stand alone WCF REST service in 4.0 under Studio 2010 but i decided to host it under Azure as opposed to Amazon AWS. Is there an easy way for me to convert it or what do i need to do so it runs under Azure's web role? I created a blank web role project in Studio but the structure of the WCF seems totally different.


Solution

  • You shouldn't have to do anything special to get your service on Azure. Depending on how you do your WCF service, you can just add it as a cloud role. If you want to see an example of a WCF service used in Azure you can download our Windows Phone 7 Guidance that has a WCF 4 REST service hooked for a Windows Phone 7 project. You can the chapter about that here. You can get the code here and check out the service.