Adding Custom API routes with Node SDK

Azure Mobile Apps use a new SDK and there is a change in the way you can add custom routes to your API.  The Easy API interface allows you to quickly stub out a function for an API like http://mymobileservice.azurewebsites.net/api/Health for example, but documentation on how to add another route like http://mymobileservice.azurewebsites.net/api/Health/Databases is a little…

0

Backup Migrated Mobile Service (Node.Js backend)

You may have gotten this error when trying to backup a Migrated Mobile Service built with a Node.Js backend: Database connection string not valid for database MS_TableConnectionString (SQLAzure). Keyword not supported: ‘driver’. Reason: Backup is using ADO.NET internally. The Backup feature uses the Database Connection Strings to configure the Database backup and the setting: MS_TableConnectionString…

0

Troubleshooting Azure App Service Apps Using Web Server Logs

Oftentimes, the best way to start troubleshooting a web application is to check the web server logs. Web servers log each request that they process, and by checking the server logs, you can often find out details about why things went wrong. Particularly, you want to pay attention to a couple of different fields in…

0

Why did my Function App stop working?

We had a customer the other day whose Function App stopped working. He was using a blob trigger and it worked fine for a while, but at some point during the overnight hours, it just stopped working. Naturally, he assumed something in Azure was broken and he opened a support case. As it turns out,…

0

Protecting Elmah.axd

Elamh is a common tool to debug ASP.NET application. You can use Elmah in Azure Website, here is a nice blog But by default Elamh.axd is available to all users. Here are quick steps to secure it using forms authentication. Protecting Elmah.axd using ASP.NET Authentication Add these lines at the end of web.config file  …

0

App Service Plan

Here are different components within Azure Website’s App Service Plan

0

Move Azure Website from one AppServicePlan to another

Here are the steps to move Azure Websites from one AppServicePlan to another.   write-host “trying to load azure dlls” Import-module azure   write-host “trying to log into Azure” #Select-AzureSubscription -Default “Microsoft Azure Internal Consumption” #Add-AzureAccount #Login-AzureRmAccount     $AzureSubscription = “<GUID>” $ResourceGroupName = “InternalConsumptionResourceGroup” $WebsiteName = “nptesting” $NewAppServicePlanName = “My2ndAppServucePlan” # $NewAppServicePlanName = “InternalConsumptionAppServicePlan”…

0

Supporting ASP.NET 5, Core RC1, RC2 on Azure App Service

Is ASP.NET 5, Core RC1, RC2 supported on Azure App Service? No, ASP.NET 5, Core RC1 or RC2 is no longer supported on Azure App Service. The only supported ASP.NET Core stack is RTM on Azure App Service. Check the newly announced RTM version at https://blogs.msdn.microsoft.com/appserviceteam/2016/06/27/azure-app-service-and-asp-net-core/ Here is the list of .NET supported stacks on Azure App…


Hybrid Connection error with SQL Server: System.OverflowException: Arithmetic operation resulted in an overflow

Problem If you are trying to use Azure Hybrid Connections to access SQL Server then be advised that an update on May 10, 2016 to .NET may cause connections to fail.  When it fails you will see errors that look like this Exception: System.Data.Entity.Core.EntityException: The underlying provider failed on Open. —> System.OverflowException: Arithmetic operation resulted…

0

Most frequent issues when deploying (creating) a new Azure App Service Environment (ASE).

When creating a new Azure App Service Environment (ASE) there are certain scenarios that will make the deployment fail after about 5 hours with an error similar to the following in the Audit logs: Resource ID: /subscriptions/{Subscription ID}/resourceGroups/Default-Networking/providers/Microsoft.Web/hostingEnvironments/{ASE name} Error: {“error”:{“code”:”ResourceDeploymentFailure”,”message”:”The resource provision operation did not complete within the allowed timeout period.”}} Note: Audit logs…