Troubleshoot Startup failures for Azure Functions

In encountered a startup issue in my Azure Function, but was lacking error details to properly troubleshoot it. Luckily I found a feature in Azure that can help you diagnose startup issues.

In my case I encountered a KeyVault access issue. Since I was integrating with multiple KeyVaults in my function, it was a bit tricky to troubleshoot. The error message:

Microsoft.Azure.KeyVault: Operation returned an invalid status code ‘Forbidden’.

To get more details on the actual error, do the following:

  • Go to the Azure Portal
  • Navigate to your Azure Function
  • Select Diagnose and solve problems in the menu.
  • Select Function App Down or Reporting Errors
  • It will now do some analyses and provide you with the errors it encountered.
  • You might have to click Go to detector.

In my case it showed me an exception like this, which got me on the right track to find what permissions I forgot to set.

Hope this helps and good luck troubleshooting!

The type or namespace name ‘ServiceBus’ does not exist in the namespace ‘Microsoft.Azure’

I was trying to create an Azure Function with an NServicebus trigger, but kept receiving the error in the title on build. Since it took me some time figure out what was actually causing it, here what I discovered. So I started of creating a new Azure Function with Service Bus trigger in Visual Studio […]

Azure Functions – May not scale error – modified configuration

One of the things I love to add to my Azure Functions are environments specific app settings files. Anybody that has been working with ASP .NET Core will be familiar with them and in my opinion, they are great to store your non-secret environment-specific settings. Since Microsoft start supporting them easily in Azure Functions, I […]

Word verspringt regelmatig door EndNote

Op mijn MacBook heb ik er last van dat Word regelmatig verspringt als ik gebruik maak van EndNote citaten. Dit probleem is echter makkelijker op te lossen. Ik maak gebruik van Word 2016 op macOS Sierra en EndNote X7. Op het moment dat de verspringing plaats vindt binnen Word, worden de citaten geupdate en verspringt het scherm […]

Onvoldoende opslagruimte Samsung Galaxy S5 – SD-kaart slim inzetten

Eerder schreef ik hier al hoe je ruimte op je Samsung Galaxy S5 (of andere Android telefoon) kunt maken door de cache gegevens zo nu en dan op te schonen. Een nadeel hiervan is dat het na verloop van tijd niet echt heel veel meer oplevert, zelfs ookal heb je voldoende ruimte op je SD-kaart beschikbaar. Hier nu een […]

Solve your storage problems on Samsung Galaxy S5 with Adoptable Storage

One of the most annoying things on my Samsung Galaxy S5 is the fact it I am running out of internal storage capacity all the time. Every time I was cleaning the cache or trying to move apps to the SD card, but each time an updated was installed the apps were back on my internal […]