claw0ry.net

Hi, my name is Mads! *waves*

I'm a developer and Linux enthusiast from Norway. I mainly use this site as a personal reference, cause my brain too smol. Maybe you'll find something interesting too.

  • I grew up on the internet with Linux and open source in the early 2000s.
  • I believe the tech world has become to overengineered, abstracted and complicated.
  • I'm always searching for a deeper knowledge on how things work.

Bluesky: claw0ry.net


* Azure Device Flow Authentication in Go

One of the usecases of Go is to create CLI tools for developers to ease their work. Often it involves creating/modifying resources or retrieving information from cloud services. In this post we’re going to setup device flow authentication against AzureAD in Go.

Read more »



* Get type definition in Powershell

Today I went back to some Powershell scripting with the Az module and it frustrated me that I wasn’t easily able to know what properties Get-AzADGroup (or any of the other Az cmdlets) returned to me without actually invoking the cmdlet. E.g I dont want to invoke New-AzADGroup just to be able to see what properties it will give me so I can use that in my script. Previously I’ve relied on IntelliSens in my editor, but it often fails, so I sought out to find a more manual solution (who would have thought..).

Read more »


* Interacting with Azure Key Vault in Go

Most times when working with API’s there some kind of documentation on how to iteract with it. Working with Azure SDK for Go is a different story. There’s almost no documentation (except the code itself). At my current job we use Azure a lot and a big part of that is Azure Key Vault. For my latest project I had to fetch some secrets from Key Vault to use in a CLI application, so I had to start digging into the source code to find how to interact with it.

Read more »