Cannot read property ‘listRegistrationsByTag’ of undefined’ (Azure App Services)

Situation: You are creating a Mobile App or Azure App Services and setting up the push notifications for the first time Problem: Calling Register or RegisterAsync in the client code can result in a 400 status code coming back with an inner exception of: ‘Cannot read property ‘listRegistrationsByTag’ of undefined’ Cause: The Portal blade does…

0

Azure Traffic Manager probe degraded due to 401 from Azure Web App

Symptom Your Azure Web App (or any Azure App Service) has authentication enabled but you want to use Traffic Manager.  Since the probe returns the HTTP status code 401, the endpoint is considered degraded.  This blog only applies to Azure App Service Authentication.  If you are using a third Party like Auth0 you need to…

0

How to get a full memory dump in Azure App Services

There are a ton of blogs on getting full memory dumps but some get complicated.  Note then when you create a full memory dump it will have the effect of pausing your web app so use this judiciously!  Here is my simple version Go to the Kudu site for your Azure Web App (or App…

0

How to use Fiddler to Debug Azure App Service issues (with authentication)

Sometimes it is difficult to isolate Azure App Service issues to determine is the problem is the client or server.  You can remove the client easily using a tool like Fiddler or Postman however is you are using authentication there are some tricks you need to use.  I will demonstrate this with Azure Mobile Apps,…

0

How to use Fiddler to Debug Azure App Service issues (with authentication)

Sometimes it is difficult to isolate Azure App Service issues to determine is the problem is the client or server.  You can remove the client easily using a tool like Fiddler or Postman however is you are using authentication there are some tricks you need to use.  I will demonstrate this with Azure Mobile Apps,…

0

Run an async task in a console app and return a result

I had someone ask how to run an async task in Main of a console app.  Yes there are different ways to do it and this is just one!   using System; using System.Net.Http; using System.Threading.Tasks; namespace UrlAuth { class Program { static void Main(string[] args) { try { // Start a task – calling…

4

Automating EasyTables for Azure Mobile Apps

You could use the Azure CLI to create Azure Mobile Service tables for the node.js backend.  You can no longer do this but there is a much easier solution.  You can simply drop a .json file in the ‘Tables’ directory and when the app starts it will create the table in the database and make…

0

Execute Transactions from Azure Mobile App API (node.js)

Using the Azure Mobile App API interface (like: https://mymobileapp.azurewebsites.net/api/doTransActionStuff ) with a node.js backend, I found documentation around executing SQL Transactions a little light.  So… Here are some options you could use: 1. Call a stored procedure that does everything for you This would be the way I would do it!  Stick all of the…

0

How to deny HTTP methods (or verbs) in Azure Web Apps

If you want to deny HTTP methods or verbs in Azure Web Apps you can do this be changing your web.config file. Add the following or create the following sections if they do not exist in your <configuration> section of your Azure Web App, web.config file: <system.webServer>    <validation validateIntegratedModeConfiguration=”false” />    <modules runAllManagedModulesForAllRequests=”true” />    <handlers>        <add…

1

Easy tables, Easy APIs error message ‘Unsupported Service’

Overview When you try to access or create Easy tables or Easy APIs in Azure App Services or Azure Mobile Apps you may get this error message in the portal: Unsupported service. Cause Easy tables and Easy APIs are only available to an Azure Mobile App that has been created initially as an Azure Mobile…

0