在Windows Azure上部署WCF服务
只是为了澄清我是第一次用azure工作。 几个月前我用SQL Server连接创建了一个Restful WCF服务。 我在IIS上使用SQL Server Express 2012上的数据库部署了WCF。该服务没有问题。
[OperationContract] [WebGet(UriTemplate = "feed/{ID}/{Rating}/{Feed}", ResponseFormat = WebMessageFormat.Json)] string feed(string ID, string Rating, string Feed);
现在我必须将WCF服务移动到Azure。 问题是我不知道如何将WCF部署到azure,如果甚至可以将WCF部署到azure。 数据库已移至azure。
根据您是否需要Azure WebSite或Cloud Role – for Cloud,主体相对容易…
- 确保从WebPlatform安装程序安装Azure SDK。
- 向项目添加WCF云服务角色
- 展开项目并右键单击“角色”节点,选择“添加”,然后从解决方案中选择现有项目。
- 使用Azure凭据发布角色。
这两篇文章提供了更深入的端到端教程……
- http://www.claudiobernasconi.ch/2013/08/03/deploying-a-wcf-service-on-windows-azure/
- http://blogs.msdn.com/b/nishasingh/archive/2012/12/05/creating-and-deploying-a-wcf-service-on-windows-azure-and-consuming-it-in-windows- 8-STORE-app.aspx
有了这个更具体的Azure网站
HTH