Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you mix Azure Mobile Services with Azure Cloud Services?

I am investigating Azure (ie. beginner). Mobile Services by itself will not work for my mobile app needs (data access is too simplistic). My question is can you mix Mobile Services and Cloud Services such that they both access the same database/schema? In other words, write a mobile app that uses Mobile Services for the basic functionalities it provides (CRUD, authentication, etc), but then perhaps calls my custom REST API running on a Web Role server for more complex database operations. In order to do that, the Cloud Services instance would need to be able to read/write to the same database/schema. Is this possible, and if so, any tips on how to access the auto generated mobile database from the Cloud app? Thanks.

like image 612
Joel Avatar asked Dec 24 '12 23:12

Joel


People also ask

Which Azure service can be used to deploy mobile app?

Kubernetes on Azure Build and deploy mobile backend solution that scale seamlessly on demand.

What are three uses for the Azure Mobile App?

Simplify and accelerate development and testing (dev/test) across any platform. Build secure apps on a trusted platform. Embed security in your developer workflow and foster collaboration between developers, security practitioners, and IT operators.

How do I make Azure Mobile App using Azure?

Step 1: Log in to the Azure portal and create a new Azure mobile app backend. Step 2: Configure the mobile app backend. Step 3: Define a table controller. Step 4: Create the Data Transfer Object (DTO) class.

Can we deploy mobile app on Azure?

Build engaging mobile apps fastUse the Mobile Apps feature of Azure App Service to rapidly build engaging cross-platform and native apps for iOS, Android, Windows or Mac; store app data in the cloud or on-premises; authenticate customers; send push notifications; or add your custom back-end logic in C# or Node.


2 Answers

Absolutely, Mobile Services is very much designed with this in mind.

You can

  • call Mobile Services from other services (in Azure, or anywhere else) thanks to the HTTP REST API: http://msdn.microsoft.com/en-us/library/windowsazure/jj710108.aspx
  • call other services from Mobile Services using server scripts and the request module: http://www.thejoyofcode.com/Making_HTTP_requests_from_Scripts_in_Mobile_Services.aspx
  • connect DIRECTLY to your Mobile Services SQL database from anywhere. This is just a SQL Azure database so you can use the connection string to connect from another service in Azure (or even beyond)
  • add additional functionality to your SQL database (like stored procedures). It's just a SQL database!
  • invoke T-SQL from Mobile Services scripts using the mssql global module.

Lots and lots of composition options, so the short answer is YES, definitely!

like image 50
Josh Twist Avatar answered Oct 18 '22 03:10

Josh Twist


The short answer, I believe is "Yes".

Furthermore, I believe the main issues are price/licensing, rather than technical:

  • http://www.windowsazure.com/en-us/pricing/details/

I suspect your "database" would reside in MS Azure/Cloud, and "access" would be any combination of Mobile/direct access and/or custom web services, both to your Azure/Cloud instance.

like image 45
paulsm4 Avatar answered Oct 18 '22 02:10

paulsm4