Video: Deploying an AKS Cluster with Bicep, GitHub Copilot and Neovim

Inspired by a GitHub Copilot demonstration I witnessed at Microsoft, I wanted to see how quickly I could deploy an AKS cluster from Neovim with Bicep using Copilot. I wasn’t disappointed! Links: 202306271706 https://www.youtube.com/watch?v=l0B65FUfNBU [[AKS]] [[Kubernetes]] [[Neovim]] [[bicep]] [[coding]]

June 27, 2023 Â· Mischa van den Burg

Video: Introducing New Bicep Parameter Files - .bicepparam - No more JSON!

The new parameter files use bicep style formatting instead of JSON, and they will make the lives of Cloud Engineers a lot easier. They have the following advantages: More readable and editor friendly Cleaner and less lines of code VSCode integration Quickly convert from JSON or template file using VSCode In this video I introduce these new files. I go over the new formatting, and I also introduce the new features in VSCode for the .bicepparam files. ...

June 27, 2023 Â· Mischa van den Burg

How To Get The Id Of An Existing Subnet In Bicep

Did a refactor of some of our Bicep template code for our AKS clusters today. Before, we were using a rather complicated line of code using string interpolation. var vnetSubnetId = '${resourceId(vnetResourceGroupName, 'Microsoft.Network/virtualNetworks', vnetName)}/subnets/${vnetSubnetName}' This was hard to read and the Bicep linter gave the following warning in my editor and during deployment: WARNING: D:\a\1\a\drop\Generic-templates\containers\azure-kubernetes-service\v4.0\templates\aks.bicep(117,7) : Warning use-resource-id-functions: If property “vnetSubnetID” represents a resource ID, it must use a symbolic resource reference, be a parameter or start with one of these functions: extensionResourceId, guid, if, reference, resourceId, subscription, subscriptionResourceId, tenantResourceId. Found nonconforming expression at vnetSubnetID -> vnetSubnetId [https://aka.ms/bicep/linter/use-resource-id-functions] ...

June 23, 2023 Â· Mischa van den Burg

Video: How I Write & Publish My Blog Using Neovim & Hugo From The Command Line

I show my workflow to publish my Hugo blog from the command line using neovim and bash Links: 202305091705

May 9, 2023 Â· Mischa van den Burg

Video: Creating A Command To Change Fontsize in Alacritty

Links: 202305070805 https://youtu.be/Q8dxoqqMHAg

May 7, 2023 Â· Mischa van den Burg

The Ups And Downs Of A Devops Engineer

Next winter I’ll be entering my third year as a DevOps Engineer. When you first break into this field there is an overwhelming amount of things to learn. Frankly, this will always be the case. But I’m reaching a point where I have gained experience with most of the main areas and tooling, and I can start seeing the relations between them and how they compare to one another. Just like any other job or activity, there are things that you like and that suit you well, and there are things that you don’t like. And now the first phases of overwhelm are confidently behind me, I’m starting to learn the things I prefer doing over others. ...

May 4, 2023 Â· Mischa van den Burg

Structs In Go - Similar To Classes In Python?

The Tour of Go is very clear: Go does not have classes. One benefit of learning multiple programming languages is that each language provides you with a set of “pegs” that you can use to refer to other languages. As I learned about structs in Go, I hung them to the “Python classes” peg and used that as a reference point. Using these reference points can help you to understand the object of study by looking at their differences and similarities. ...

April 10, 2023 Â· Mischa van den Burg

Use The %q Verb When Debugging In Go

I’m working on my twitter CLI and as I was writing a function to format the tweet I remembered something I picked up last week. After a quick search in my notes I remembered to use the %q with printf. slice := []string{feed.Items[0].Title, feed.Items[0].Link} result := strings.Join(slice, "\n") fmt.Printf("Testing printf %q", result) This is very useful when formatting output. Now I can actually see whether it is inserting the new line characters correctly: Testing printf "I Made My First Tweet Using My Go Program\nhttps://mischavandenburg.com/zet/go-first-tweet/"I Made My First Tweet Using My Go Program ...

April 9, 2023 Â· Mischa van den Burg

I Made My First Tweet Using My Go Program

I spent the evening learning about the Twitter API. It was not as straight forward as I thought. My goal was to do this project using only the standard library, and I hoped to get away with a few simple curls, but since the API requires OAuth 1 to create tweets, I had to revise my strategy. After struggling with Postman for a few hours to get the correct environment variables set up I managed to make my first tweet through Postman. Turns out that Twitter made some big changes in the free tier of their API, and it took me quite a while to figure out that the functions that are used as examples in the API documentation are not accessible to free accounts anymore. ...

April 8, 2023 Â· Mischa van den Burg

Outlining My First Go Project

When learning a programming language it is important to start building things quickly and to begin applying the theory. I have a tendency to dive into the books and lose myself in the theory, where I should be getting hands on experience. Over the past few months I’ve generated a bunch of ideas for projects that I want to write, and I selected my first project today. https://github.com/mischavandenburg/twitter-cli https://twitter.com/mischa_vdburg Twitter CLI Programs should solve a problem. My problem has to do with Twitter. I recently created a Twitter account, and I want to make a tweet whenever I publish something new on my website. I’m currently doing this by hand, and that needs to stop, obviously. ...

April 8, 2023 Â· Mischa van den Burg