-
Azure Functions: Managed Identity, Microsoft Graph, and Roles to Read Security Events
It may be necessary to automate processing of Security Alerts from Microsoft Graph through an Azure Function. In order to do this, the Azure Function needs to have the role permissions to read Security Events in Microsoft Graph. To accomplish this, you’ll need to
-
Multi-Version .NET Targeting and the Subsequent System.Net.Http Issue[s]
When developing an library that targets multiple .NET versions, you most likely start-off with a .NET Standard library and change the CSPROJ file to include other .NET versions. When you do this, Visual Studio and/or NuGet have a hard time deciphering just which verison of the System.Net.Http assembly to use. You’ll see this manifest as…
-
.NET Core 2.0: Expression: [Recursive resource lookup bug]
When developing Azure Functions and targeting .NET Core 2.0 (or higher), you may run into an infinite recursion bug that prevents you from successfully building the Azure Function; worst of all is that it may happen at a seeming random time. Assert Failure Expression: [Recursive resource lookup bug] Description: Infinite recursion during resource lookup wit
-
iTunes: Save Your Money and Don’t But the Singles, Buy the EP
A new album, Innan det tar slut, dropped on 29 Nov 2019 and I finally got around to purchasing it today. When I went to play the six track album, here’s what it looked like in iTunes: It’s a six song EP. So, where
-
C#: Recursively Getting Subfolders Whilst Ignoring the Errors that Would Stop Other Traversal Means
So, I’m writing something that is – eventually – meant to scrub the harddrive on IoC (indicators of compromise). The first major problem to solve is the following: If I have drive ‘C:\’, and I try to enumerate all of the folders under the drive, Directory.EnumerateDirectories (including the recursive search option of all directories), then…
-
Zen Installer: Installing Arch Linux and the Subsequently Confusing FSCK Issue
So, I recently installed Arch Linux (via the Zen Installer) and all went well. Well, until I removed the USB the OS was installed from and rebooted, that is…
-
Testing Private Methods in Static Classes: The Not-So-Easy Way
I had a problem with testing a method: The method is intentionally private, as exposing it public wouldn’t benefit anyone and it merely reduces code-overhead for repeated operations – given ‘x’ condition. In this case, it was if the product of two numbers was greater than nine, then take those numbers and add them together…
-
Azure: Enabling Function Apps to Access Microsoft Graph
With Azure Functions, it’s even easier to code to Azure; however, with such portability comes a little bit of pain to the growing processes. It used to be (and still is, frankly) that you had to register a full-blown application in Azure Active Directory to grant your application read access to other resources, such as…
-
DLNA: Network Shares Cause Blocking Threads in Windows Explorer During Copying Events
TL;DR – DLNA shares have a bug which can cause Explorer to stop copying data across the share, nigh indefinitely. The easiest work-around is to restart Windows Explorer, delete the target file in the previous copy operation, and start anew. I’ve discovered a bug that I can’t seem to get addressed because the assembly isn’t…