简体   繁体   中英

How do I promote WCF Service to Azure Cloud Service?

I have an existing WCF service, and a Cloud Service setup in Azure to host it. Currently we are logging into the remote desktop, finding E\\sitesroot\\0 and copy\\pasting our built code, and then recycling IIS.

When I publish other WCF services to a cloud service, using Visual Studio I can right click the project and choose "Publish to Microsoft Azure...", but for this project I do not have that option. I think this is because those other projects are setup as a Web Role, where my problem project above doesnt seem to have that delegation.

What do I need to do to allow me to publish this thing properly, I have a feeling we're doing it wrong and it may cause me grief some time in the future.

The following Microsoft Azure MSDN article seems to address your scenario:
https://msdn.microsoft.com/en-us/library/azure/hh420322.aspx

In summary, you need to:

  • Enable a web application for deployment to Azure by opening the shortcut menu for a web project in your solution and choose Add Azure Deployment Project
  • Publish your web application to Azure by opening the shortcut menu for the web project and choose Publish to Azure

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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