I think you can. If you have an ASP.NET web application, you can add some .svc files for your WCF service. They will be deployed as part of your web site. Then you can use your website through http://contoso2.azurewebsites.net/ and use your web service through, let's say http://contoso2.azurewebsites.net/api/ProductService.svc
Is it possible to deploy a WCF service and a WebSite in the same WEBSITE PORTAL from AZURE?
-
16-01-2022 - |
Question
I' deploying two services, one of them is a website and the another is a WCF Service for desktop applications.
I have one web site called contoso2.azurewebsites.net and that place I place my web site, but also I would like to deploy my WCF service, the question is... I need to create another web site service to deploy in it? Or it can be in the same place?
Solution
OTHER TIPS
Combining your website and services into one application is possible, but you can also host them in two seperate sites within the same web role.
You basically have to:
- Create a cspack with multiple sites
- Map the internal IP address of the machine to a DNS of your choice in the hosts file when the role starts
More details and scripts on my blog: http://thomassmets.wordpress.com/2013/01/21/a-web-frontend-with-a-wcf-backend-in-azure/
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow