Azure Mobile Service with Xamarin - azure

I'm new to all this.
When creating a mobile service on Azure and selected a DB.
How do you the the mobile service code that you download to include the data objects in the DB? I just get the TODOITEMs.
How do you used the EF with Azure and Mobile services to generate the service?

Check out this tutorial on MSDN Blogs, by Carlos Figueira from the Azure Mobile Services team.
Creating an Azure Mobile Services .NET backend from scratch
http://blogs.msdn.com/b/azuremobile/archive/2014/04/10/creating-an-azure-mobile-services-net-backend-from-scratch.aspx
There is a question below the article that asks whether this .NET back-end will work with Xamarin as well, to which the author responds: "Yes it should work with Xamarin as well"
Hope that helps!

Related

Azure AD Connect

Is there any way to use mvc3 application with azure AD connect. My application is mvc3 app and having some difficulties in installing some owin nuget packages. Thanks in advance.
Well as far as Nuget is concerned, you should explain what difficulties you are facing.
For Connecting an MVC3 web app with Azure AD there are plenty of articles available, you can follow this one for help https://msdn.microsoft.com/en-us/library/azure/hh127794.aspx
Here is a good sample and tutorial to integrate Azure AD within an existing MVC app:
Integrate Azure AD into a web application using OpenID Connect

Which Microsoft Azure version?

I want to use remote notifications for my Android app using Xamarin. Now I found a way implementing this through Microsoft Azure.
So I am a student and have a Microsoft DreamSpark account. Now i thought, I could download Azure via DreamSpark, but which of these packages I need?
Microsoft Azure Authoring Tools
Microsoft Azure Client Libraries for .NET
Microsoft Azure Emulator
Microsoft Azure LightSwitch Tools for Visual Studio 2013
Microsoft Azure Mobile SDK
Microsoft Azure SDK for .NET 2.5
Microsoft Azure Storage Emulator
Microsoft Azure Storage Tools
Microsoft Azure Tools for Visual Studio
I don't think I need a Mobile SDK, do I?
You have to install Microsoft Azure SDK for .NET so that you enable azure projects in your Visual Studio.
But if you only require to build a Notification Service, consider building an Azure Mobile service straight from the Azure Portal. Then you can configure your android application to use that service.
Documentation and more help can be found :
1. http://azure.microsoft.com/en-us/documentation/articles/mobile-services-dotnet-backend-xamarin-android-get-started/
2. https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn629482.aspx
what you would want to look at is 'push notification' feature of Azure mobile service / Azure Mobile app service (this is the new name). Depending on which back end you are using with Android Xamarine (.NET/JavaScript)you can find tutorials (links below). You will need an active Google account, Google Cloud Messaging Client Component, Xamarin.Android and the Azure Mobile Services Component installed in your project.
See here for more details on this, hope this helps:
Add push notifications to your Mobile Services app
Get started with Mobile Services

Give Azure web api client access to web api via Azure management portal

Some weeks ago I followed this article in MSDN Magazine on how to configure client access to a web api, protected by an Azure AD organizational account and hosted in Azure. It worked perfectly.
http://msdn.microsoft.com/en-us/magazine/dn463788.aspx
But now when I was about to add Another api and client, things have changed in the portal.
The Native Client Application configure Page Azure Management Portal seems to have change in the recent days - there is no longer a "web api" section at the bottom where you can select the web api for the client to access, (see figure 6 in the article) instead there is a "Permissions to other applications" section with a list of applications, but your web api's are not shown there, only Exchange, AD and other "default" Azure apps. I'm pretty confused now how to give a client access to a web api... hope this is the right place to ask!
The changes you see are part of the new features released last week. You can read more about them in a Blog post from the AD Team: "New OAuth2.0 features make it easy to write Azure AD connected apps for the Web, iOS, Android & Windows!"
Interestingly enough, when I create a new application and look at the configure tab a "Windows Azure Service Management API" is an option in the first drop down. You might try looking again today. For what it is worth I don't see anything other than WAAD and the management API as something I can select. The selections must be limited for some reason based on account maybe?
Especially in these preview features expect things to change with little to no warning. Probably the best place to seek out more information is on the Windows Azure AD Forums.

Windows phone 8 and Azure AD / ACS

I am developing a WP8 app, which requires authentication in order to get a token to call the web api backend. I don't want to create my own account management mechanism, because it seems silly in our day and age to implement my own account repository.
I am using Azure anyway, so I thought to leverage it for the user management and authentication/authorization. What better place to manage users than Active Directory. If I also use ACS, I can get both "native" accounts and using other providers (Facebook, Microsoft Accounts, etc.) right out of the box.
So I have been searching for DAYS and I can't find even one tutorial or example or even someone talking about a flow that includes WP8, Azure AD/ACS and Web API.
I can only find tutorials on authenticating with Mobile Services and I don't want to use that, as it seems much to simple for what I need.
Is this use case even supported currently? Can one authenticate users of a WP8 app using Azure AD and then receive a token for authorization with a Web API hosted in a VM?
Vittorio has just blogged about this:
A Sample Windows Phone 8 App Getting Tokens from Windows Azure AD and ADFS.
The article also has a link to his earlier one - Fun With Windows Azure AD: Calling REST Services from a Windows Phone 8 App (which may have been one you found?).

Windows Azure Mobile Services management API

Is there any management API in Windows Azure Mobile Services?
For example: methods to create mobile services or data tables.
There's a Mobile Service Management API however it is not publicly available yet. One thing you could do is take a look at the source code for Windows Azure CLI tools and figure out how this API has been implemented. You can view the source code on GitHub: https://github.com/WindowsAzure/azure-sdk-tools-xplat.

Resources