Author: Travis

  • Azure Functions: Maintaining but minimizing Application Insights output

    Microsoft has really been pushing Application Insights in the Azure Functions space, to the point where you know can’t see individual function invocations without having Application Insights enabled. In cases where we’re already logging to another logging service (e.g. Splunk), the config below has been useful to maintain the invocation output, but otherwise minimize Application…

  • .NET SqlClient Issue with Windows to Linux Migration

    After migrating an Azure Function project from a Windows-hosted plan to the Linux-hosted Flex plan, I started seeing the following exception when trying to open a SQL connection: It turns out this was the result of building with a win-x64 runtime identifier. To fix the issue, I updated my build to use the now appropriate…

  • Grant Azure Managed Identity Access to Azure SQL Database

    Maybe more explanation later, but for now, just this snippet: Assumes you have an Azure Function App called my-azure-function-app and used the Identity blade to create a System assigned identity, which was also named my-azure-function-app. Some other sources suggested using the Object ID of the managed identity, but I had no luck with that approach.…

  • Resize logical volume after expanding disk on Ubuntu VM Guest

    Disclaimer: This is a quick set of notes I grabbed during this process. It assumes Ubuntu 21.04 installed with default file system setup, resulting in / on a logical volume at /dev/mapper/ubuntu–vg-ubuntu–lv. After expanding the guest disk size in VMWare ESXi, I logged into the Ubuntu guest. Possibly Unnecessary #1: reboot the VM. Possibly Unnecessary…

  • Windows 11 Install Gotchas

    I often find myself reinstalling Windows 11. Recently, I got a new laptop, which came with Windows Home, and some bloatware, so I wanted a fresh Windows 11 Pro install. Drivers During Setup Being very new, the Windows 11 setup did not have drivers for Wi-Fi adapter, so I could not get passed the network…

  • GitHub Actions: repository not found

    GitHub Actions: repository not found

    I’m working in private GitHub repository housing an Azure Functions project. I just used the Deployment Center feature in the Azure Portal to connect my Azure Function App to my GitHub repository, and automatically generate a GitHub actions YAML file. That file looks something like this: After some Googling and experimentation, I found this to…