Using SQLite With ASP.NET And Azure App Service

I’m a fan of using SQLite for small projects where a full MSSQL instance is not warranted, but I wasn’t sure whether it could be packaged and shipped with the app when deploying to Azure App Service. Turns out it can and it works well. There are a couple of considerations around…

Timeline Visualisation Of Veeam Backup Job Sessions

I was recently going through an old SVN repo and found a small pet project I worked on. It was a simple way display Veeam job sessions in a timeline so I could visually see how long jobs were taking and how the Veeam scheduler was handling things. It also served to identify days…

Using .NET With PowerShell

This goal of this post is to explore some .NET classes that may be useful to sysadmins and PowerShell devs without .NET (C#, etc.) experience, with a bit of a deeper dive into some concepts when warranted. By the end, you’ll be familiar with several .NET classes and understand…

Introducing Errors Into HTTP Requests For Resilience Testing

I’ve recently been playing with Polly, a .NET library for adding resilience to code where transient faults may occur. It allows policies to be defined that enable retires, timeouts, rate liming and a host of other options. As a simple example, you can specify that your HTTP API…

Adding All Projects To A .NET Solution With Dotnet CLI And PowerShell

I’ve recently spent a bunch of time learning C# and ASP.NET and I often find myself creating multiple projects and wanting to add them all to a Solution with one command rather than individually. I primarily use the CLI for managing projects and solutions so I worked out a…

Getting Uptime With PowerShell - The Fast Way

Getting uptime using WMI with PowerShell There are already a ton of posts about getting system uptime with PowerShell, and most of them use a WMI call to . Something along the lines of this: Getting uptime using [System.Diagnostics.Stopwatch] with PowerShell The issue with the…

Using ChatGPT API To Generate Git Commit Messages With Powershell

Git commit messages introduce a little bit of friction when I’m writing code. I tend to get stuck trying to come up with the perfect message, similar to the character creation screen in an RPG. So armed with an OpenAI account and API access, I decided to test handing over the…