I've been stuck for days with this problem. I'm trying to create a mobile service in .NET backend and publish it to Azure.
I've followed this tutorial mobile-services-dotnet-backend-how-to-use-code-first-migrations to setup code first migration on the mobile service project.
It works fine when I deploy locally, but when I publish to Azure, it gives me this frowny service unhealthy
and I see this error in the logs
Information Changed service health to 'Critical' (Service is unhealthy. Please check the service logs to determine the issue and how to correct it.) from previous state 'Healthy' (The service is considered to be in a healthy state.). App.HealthReporter 20/06/2014 06:00:03
Error Boot strapping failed: executing 'WebApiConfig.Register' caused an exception: 'Windows logins are not supported in this version of SQL Server.'. App.Hosting 20/06/2014 06:00:03
This matches the symptoms in this blog Code-First Migration problem with AMS, but I can't apply his solution. He mentions that he grants control to the generated user
GRANT CONTROL ON SCHEMA::[dbo] TO [The Generated User Login]
But I have no idea where that is applied, where do I get the generated user login, etc. The database I'm using will be dedicated to that mobile services project, won't have tables from any other project.
More importantly, is there a better way of doing this ? as in this problem with naming seems too wrong to just work-around, is there a better of way setting up the database for an azure mobile service .net backend project ?
Please help