How to change database schema in an Azure Mobile App .NET backend? - azure-mobile-services

I've found documentation on how to change a database schema for an Azure Mobile Service .NET backend, but I haven't found similar documentation for Azure Mobile Apps. For those who haven't been paying close attention, Azure Mobile Services was Microsoft's original backend-as-a-service, and it has now been replaced by Azure Mobile Apps.
The documentation I reference above mentions using ClearDatabaseSchemaIfModelChanges and ClearDatabaseSchemaAlways. Neither appears to be available in an Azure Mobile App.
How can I start with the quickstart ToDo app and modify the .NET backend to include an additional database column?

Behind the scenes, the Azure Mobile Apps SDK uses Entity Framework. You need to adjust your DTO / Model and then add a database migration.

Related

Service Fabric .NET Framework services and ApplicationInsights.config endpoints for Azure gov

I have a service fabric application that hosts api’s with app insights enabled. The api services are .Net framework 4.8 webapi projects and they are native fabric stateless and stateful services. I don’t use the app insights service fabric specific packages, but do have the standard app insights for webapi packages. I have always been in Azure commercial and logs have worked just fine there.
Now that we are in azure gov, the only way to point a .Net Framework app to the gov app insights endpoints is by modifying the ApplicationInsights.config file.
So I’ve modified the file as per msdn, verified it is deployed with the fabric deploy package and its there next to the rest of the dlls on the vms. Yet my services still won’t log to azure gov app insight instances. Nothing is coming through. We set the instrumentation key programmatically, not in applicationinsights.config, could that be an issue? I noticed some of the msdn examples showed instrumentationkey being included in the config file, but would think that is optional.
Had anyone had experience pointing .net 4.8 fabric services to gov app insights?
When using a government cloud, you need to use a connection string instead of an instrumentation key.
Important
Sovereign clouds, such as Azure Government, require the use of the
Application Insights connection string
(APPLICATIONINSIGHTS_CONNECTION_STRING) instead of the instrumentation
key. To learn more, see the APPLICATIONINSIGHTS_CONNECTION_STRING
reference.
More info here and here.
This ended up being an issue with my gov configuration file. The MSDN document wasn't very clear on where the new config sections go. It made it look like they are all nested under the top level node of the config file. Turns out the TelementyChannel override has to go inside the default TelemenySinks node. I contacted microsoft on github about clarifying this in their docs.
Link to the unclear documentation
https://learn.microsoft.com/en-us/azure/azure-monitor/app/custom-endpoints?tabs=net
Link to github issue to get it fixed
https://github.com/MicrosoftDocs/azure-docs/issues/80066

Sharepoint Online Authentication with Play Framework web application (Scala)

We are trying to connect our Play framework application with the Sharepoint Online site collection. As per the ADAL libraries these are JAVA based and we are unable to use these libraries in the Play framework (based on Scala language).
What are the options available to connect play framework web app with Azure AD, so we will be able to view sharepoint data over the internet?
How to configure the SharePoint site collection to only allow the access based on a either a user or an IP Address?
The Microsoft Graph API uses REST endpoints so you can access Azure AD resources regardless of what language or framework you are using. The above document has links to the specific Azure AD and SharePoint documents you will need.

How to migrate products between catalogs in IBM Bluemix API Connect?

How do we migrate Products from one catalog to another in IBM API Connect?
We publish API's to dev catalog and once we are done developing ,they need to be moved to test catalog.
You can use the apic command line toolkit to do that.
There are examples of different scenarios in the readme page here: https://github.com/ibm-apiconnect/cli
e.g. to clone all the apis in a given catalog:
apic apis:clone

upgrading a custom db to azure app services

I have an exixsting windows 8 app connected to an azure customdb, shared with a web app, using azure mobile services.
I would like to write a new version of the app for windows 10 using azure app services, but I don't find documentation about the changes using a custom existing db.
Where can I find it?
The changes to the database between Azure Mobile Services and Azure App Service are identical. If you want a tutorial on how to use an existing table and project it into mobile apps, I wrote one here: https://shellmonger.com/2016/05/11/30-days-of-zumo-v2-azure-mobile-apps-day-19-asp-net-table-controllers/ - it's part of a sequence of posts, so you may have to go back a couple of posts to get to the start of the ASP.NET ones.

Self-hosted Azure Mobile Services

Is it possible to host an Azure Mobile Service? (Published on my own server)
I only want to use the Mobile SDKs to sync tables on mobile applications, I don't need push notifications.
I also want to have a Web API controlling this data in the same project, is it possible without having NuGet Packages problems?
Other question, do I need the Azure Mobile Backend to make it work with the Mobile SDKs (iOS, Android, etc)?
If those solutions don't work, I'll be hosting this on Azure and probably managing the data with another Web API self-hosted.
You may want to consider Azure Mobile Apps which allows full control of your deployed site.
The Mobile Services backend, or Mobile Apps server SDK is required for the Azure Mobile client libraries to work.