简体   繁体   中英

Can I deploy an Azure Mobile Service .NET backend to an Azure Website

I guess the question is kind of double barreled, but can I deploy an azure mobile service .net backend to an azure website and if so how (can anyone point me to any resources regarding this or is it as simple as hitting the deploy button)?

Thanks

Matt

This is doable, although you will encounter issues trying to use the authentication features. These take a dependency on the URL being *.azure-mobile.net, as can be seen from the specified values in the documentation . Since you cannot assign this domain to a Web App, the features will not behave as expected.

Otherwise, the Mobile Services project is just another Web API, and Azure Web Apps (formerly "Web Sites") is a valid publish target.

It's worth calling out App Service Mobile Apps (as brought up by @beast), as this scenario falls naturally from it. Mobile Apps explicitly exposes the Web App that underlies Mobile Services and allows you to leverage all of the Web App features. You can read more about Mobile Apps here and here , and there's some comparison content against Mobile Services here and here

Haven't tried this personally, but adding your Azure website publisher settings and deploying should technically work.

Considering that the solution provided is a ASP.net MVC solution.

I just went through this. There are quite some dependencies you need to figure out and certainly some functionality change but it wasn't too bad. I got started by looking at this article. http://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-dotnet-backend-migrating-from-mobile-services-preview/

But I didn't really get what you mean by deploying mobile service to azure website. I assume "azure website" here you mean App services Mobile app or did I get it wrong?

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