简体   繁体   English

在Windows Azure上部署WCF服务

[英]Deploying WCF Service on Windows Azure

Just to clarify I am working for the first time with azure. 只是为了澄清我是第一次用azure工作。 I created a Restful WCF Service a few months ago with SQL Server connection. 几个月前我用SQL Server连接创建了一个Restful WCF服务。 I deployed the WCF on IIS with the database on SQL Server Express 2012. The service works with no problems. 我在IIS上使用SQL Server Express 2012上的数据库部署了WCF。该服务没有任何问题。

[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. 现在我必须将WCF服务移动到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. 问题是我不知道如何将WCF部署到azure,如果甚至可以将WCF部署到azure。 The database have been moved to azure. 数据库已移至azure。

The principal is relatively easy depending on whether you want a Azure WebSite or Cloud Role - for Cloud... 校长相对容易,具体取决于您是否需要Azure WebSite或Cloud Role - for Cloud ...

  • Ensure you have the Azure SDK installed from the WebPlatform Installer. 确保从WebPlatform安装程序安装Azure SDK。
  • Add a WCF Cloud Service Role to your project 向项目添加WCF云服务角色
  • 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. 使用Azure凭据发布角色。

These two articles provide an end-to-end tutorial that goes into more depth... 这两篇文章提供了一个更深入的端到端教程......

With this one more specific to Azure Websites 有了这个更具体的Azure网站

HTH HTH

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM