Brian Herbert
Brian Herbert

Reputation: 1191

Windows Azure Cloud Service - entry point

I have created a "Windows Azure Cloud Service" project in VS2012.2 with a MVC4 web role. When I run up the project it just gives me a web page. I am trying to develop a web service back-end for my website so I want to be able to call web methods directly from my website which is also running in on Azure.

When F5 my project it just gives me a website. Should I be using a worker role instead of a web role?

Upvotes: 1

Views: 540

Answers (3)

Pickle
Pickle

Reputation: 215

Its better to use web role in your scenario, the reason being publishing a web role is pretty straight forward.

Upvotes: 0

You may use both, but a web role is easiest as it sets up everything for you.

Upvotes: 0

Shaun Xu
Shaun Xu

Reputation: 4666

If you put your back-end web service along with your web role, then you can use it directly.

If you put your service in a worker role, then you need to open an input endpoint on your worker role so that it can be connected from out side of azure.

Or, you can create another website for your service and map to a virtual dictionary/application on your web role.

Upvotes: 0

Related Questions