4

Just to clarify I am working for the first time with azure. I created a Restful WCF Service a few months ago with SQL Server connection. I deployed the WCF on IIS with the database on SQL Server Express 2012. The service works with no problems.

[OperationContract]
[WebGet(UriTemplate = "feed/{ID}/{Rating}/{Feed}", ResponseFormat = WebMessageFormat.Json)]
string feed(string ID, string Rating, string Feed);

Now I must move the WCF service to Azure. The problem is I have no idea how to deploy the WCF to azure and if it is even possible to deploy the WCF to azure. The database have been moved to azure.

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Jonathan
  • 545
  • 1
  • 8
  • 27

1 Answers1

12

The principal is relatively easy depending on whether you want a Azure WebSite or Cloud Role - for Cloud...

  • Ensure you have the Azure SDK installed from the WebPlatform Installer.
  • Add a WCF Cloud Service Role to your project
  • Expand the out the project and right click onto the 'Roles' node selecting 'Add' and then existing project from your solution.
  • Publish the role using your Azure credentials.

These two articles provide an end-to-end tutorial that goes into more depth...

With this one more specific to Azure Websites

HTH

SeanCocteau
  • 1,838
  • 19
  • 25
  • Could you explain do you have any changes at web.config file? Im trying to convert my existing wcf service (whic is already hosted at azure) to restful service. – albatross Dec 31 '15 at 09:45