Troubleshooting Azure Functions
Troubleshooting Azure Function issues related to the host runtime can sometimes be cumbersome. Having worked in support for a number of years I’ve learned a couple useful tricks. Before we start understanding the behavior of each trigger type is very important. Here’s a previous blog that I use on a daily basis as my cheat…
Connecting to App Service’s Kudu endpoint programmatically
I recently worked on a case where a customer wanted to programmatically connect to Kudu. I’m not well versed in XML parsing (which Azure Powershell pulls for the publish profile) so I went the route of using the Azure CLI’s az rest command to pull the JSON publish profile and extracting the username and password.
Azure Web App/Function App Authentication and Authorization References
Here’s a dump of authentication related articles and blogs for Authentication and Authorization formerly known as Easy Auth. Note its always good to read through the comments of the blogs and forum post to get helpful tidbits you may have otherwise missed. If you find another article please feel free to leave a comment and…
Accessing Graph API with an Azure Function through Impersonation
Azure functions allow developers to focus on business logic. With the addition of the built in Authentication and Authorization feature a simple application can be developed that pulls specific information about a logged in user from graph API without having to write any code that requests access tokens on behalf of the user. Background The…
Application Initialization with Azure Functions
TL/DR You can warm up a function app using an applicationhost.config transform with an appliationhost.xdt. This ONLY works with Windows as application initialization is a concept built into IIS. I’m not aware of the same feature set available in Linux. Skip to the config section for the transformation setup. Background A couple months ago I…
Application Insights Integration with Function Apps in Azure Government or other Clouds
The use of the APPLICATIONINSIGHTS_CONNECTION_STRING in Azure Functions is now built into the runtime. Note my examples are for Azure US Government cloud but this can ultimately be used in any cloud with the correct endpoints specified. ********Update 4/28/2020********The Application Insights product team updated the certificate so you can now use the following connection string…
Azure Function Trigger Reference Guide
This is a quick reference covering general topics for the most common Azure Function triggers I deal with on a weekly basis. Its by no means a conclusive list or troubleshooting guide but hopefully it can be used as quick read/refresher. Azure CosmosDB/DocumentDB Azure EventGridAzure Eventhub/Azure IoT HubAzure ServicebusAzure Storage BlobsAzure Storage QueuesHTTP Timer Azure…
ARM Template for Event Grid integration with a new Azure Function
TL/DR – Link to the template: https://github.com/jcbrooks92/EventGridAzureFunctionARMTemplate/tree/master Creating an ARM template with integration between an Azure function and Event Grid requires the general function template, Event Grid resource and lastly a system key from the Azure function that is used to authenticate the validation call from Event Grid. Update 2/12/2020There has been a recent update…
ARM Template for Event Grid integration with an Existing Azure Function
Recently the Azure Functions Team released a set of ARM APIs related to retrieving information about your function app such as the function keys, host key, functions deployed to the function app, and the system keys. The system keys are required to wire up Event Grid with your function app since Event Grid has to…
Load Root Certificate in an ILB ASE
Here’s the steps to upload a certificate to the Root Certificate store on the instance of an ILB ASE. This feature only works for ASEs. Brief overview: Go to an app that needs the cert to be available. Prepare your cert as a cer file (see steps below for more detail with screenshots) Go to…