Azure Function Trigger Cheat Sheet
This is a quick reference covering general topics for the most common Azure Function triggers I deal with on a weekly basis. Knowing some of the high level terminology and architecture has helped me *maybe* sound somewhat knowledgeable in conversations with colleagues and customers. Its by no means a conclusive list or troubleshooting guide but…
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. In order for the System key 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…
Restoring Deleted Function Code
The three hosting models for Azure Functions are Consumption (serverless), Dedicated, and Premium (hybrid of dedicated and serverless). Depending on the type of function used dictates if and how the function app code can be restored. Restoring Deleted Code from Consumption and Premium Functions Consumption and Premium by default require users to have an app…
Accessing Azure Functions on ILB ASEs in the Azure Portal
There are two versions of ILB ASEs, one where a custom domain must be provided with a certificate and the newer version that is created with the .appserviceenvrionment.net domain (default configuration after May 2019 unless you specify an older version of the API). If you have an ASE that has the .appserviceenvironment.net domain you will…
Gitlab Continuous (CI/CD) with an Azure Web App
Recently I came across a case with helping a customer configure Gitlab with Azure web app using continuous integration. App Services support Git repositories from Bitbucket, Github, and VSTS Git natively but Gitlab requires a bit more manual setup. Referenced these two helpful blogshttps://christianliebel.com/2016/05/auto-deploying-to-azure-app-services-from-gitlab/ https://teerachail.gitbooks.io/the-s-sentials/content/gitlab2appservice.html Go to the Azure portal under your web app ->…
Troubleshooting SMTP issues/Sending emails from Azure Web Apps
In the past year I’ve come across a number of issues related to sending emails from web apps that work locally but when a customer is developing or deploying to an Azure Web App, the connection fails. Here are some straightforward step by step troubleshooting steps to isolate platform vs your code. 1. Are you…
Using MSI with PowerShell in an Azure Function for AzureRM Commands
Here’s a quick tutorial for using MSI with PowerShell in an Azure function to call Login-AzureRMAccount. Note that Functions using PowerShell are in experimental so its not recommended for production use as the same SLA for Generally Available resources doesn’t reflect to preview/experimental resources. This allows you to not have to worry about creating a…
Automate the Creation of an Azure Function with an Event Grid Subscription in PowerShell
My colleague, Sangita Bhor, was recently working on a case where we needed to automate the deployment of an Azure Function and Event Grid Subscription. The difficulty here is that there isn’t an API from functions to get the web hook needed on the Event Grid Subscription side. The script below shows you how to…
Using Azure Alert with a Function App and Azure SDK
Update: Added the code and folder structure to GitHub: https://github.com/jcbrooks92/AzureSDKFunctionAppVMCreationAlert I was helping a customer out the other day who wanted to configure a Azure Function App to pull the private IP of a newly created Azure VM to use for their backend tasks on premises. They had setup an Azure Alert which can be…