Teemu Tapanila bio photo

Teemu Tapanila

Microsoft Azure MVP and Windows Phone developer

Email Twitter Facebook Google+ LinkedIn Github Stackoverflow

You can publish WCF Services into Windows Azure Websites. Also you can access all of the Azure resources from there too. You just need to add reference to Azure manually because by default the WCF application is not an Azure project.

  1. Download and install Azure SDK
  2. Login to Azure Dashboard
  3. Choose storage from left
  4.  Click new from bottom left, choose Storage, Quick Create, type in your url and click Create Storage Account
  5. Open newly created Storage Account and choose Manage Keys from bottom
  6.  Copy Primary Access Key and close window. We are going to use that key later
  7. Choose websites from left
  8. Click new from bottom left, choose Quick Create, type in your url and click Create Web Site
  9. After that your website is up and running
  10. Now open your website settings from Azure Dashboard by clicking the name of it
  11.  You can use either TFS, Github, FTP or Visual Studio to deploy the website. I chose VS
  12.  Now create your new WCF Application project on Visual Studio. Remember tho choose .NET Framework 4
  13. Right click your project and choose add reference
  14. Search for Azure and check Azure.StorageClient and click okay
  15. Edit IService1.cs
  16. Edit Service1.svc
  17. Right click your project and choose publish
  18.  Choose import and then browse to the file you downloaded from Azure Dashboard
  19. Now just click publish
  20. Enjoy of your new service