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…
Troubleshooting App Initialization (IIS Warmup) on Azure Web Apps
Troubleshooting App Init (IIS Warmup) Lately our team has been getting a higher load of issues related to customers trying to utilize the Application Initialization Module. This module is handy feature that allows you to warm your app prior to the application receiving requests to help avoid the dreaded cold-start or slow initial load times…
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…
Access Grayed Out Features for an ILB App Service Environment
Here’s some quick workarounds to access the features that may be grayed out in the Azure Portal. I’ve seen a lot of people have questions on how to get to the Log Stream specifically. You can make a request to https://appname.scm.asedomain.com/api/logstream/ and the logs will be streamed directly to your browser. It’s recommended to use…
Using MSI with PowerShell in an Azure Function for AzureRM Commands
Update: Azure Functions V2 and V3 support using Powershell in a GA’ed fashion. Please use these versions over the experimental V1 version that does not have any support. Code examples can be found in the link below for getting the token using PowerShell, Dotnet, ect. Also the GA’ed version of the PowerShell uses PowerShell Core…
Automate the Creation of an Azure Function with an Event Grid Subscription in PowerShell
****This blog is out of date due to the new Eventgrid and functions integrations****** 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…
Checking the Status of an Azure Web App Swap using PowerShell
This past week I was working with a customer who wanted to check the status of a swap with an Azure Web App using TFS. One option would be to use the Swap deployment task and the other would be to query the status using PowerShell. In order to do so we query the Activity…