Accessing Azure App Services using Azure AD Bearer token

Overview Here are some simplified instructions on how to setup and use Azure Active Directory authentication for a client Azure App Services application and code that will allow a client application to use a Bearer Token to access a different target app.   In this scenario there are two web apps.  The client app is the…

0

Accessing Azure App Services using Azure AD Bearer token

Overview Here are some simplified instructions on how to setup and use Azure Active Directory authentication for Azure App Services and code that will allow an application to use a Bearer Token to access that app. Review Simply put, the OAuth Bearer Token simply identifies the app that is calling an Azure Active Directory registered…

0

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

UPDATE:  This should be resolved shortly (as in today 3/2/2017) 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…

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…

1

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