Trond Jakob Sjøvang

April 20, 2019

My ISP does not give me a static IP. It doesn’t change often, but in the rare case that it has changed I never discover it before I actually need it.

So. I wanted a very simple way of auto-updating the record. I didn’t want to bother with a thirdparty client from something like dyndns (and I didn’t want to pay for anything).

As I use Cloudflare as dns service for all domains I own I could just use their API and solve it with a oneliner, but doing it with Ansible is more readable

November 26, 2018
This probably takes a bit of explanation. My use case is the following: I wish to expose an internal Wiki outside the corporate network. To accomplish this I use an Azure AD Application Proxy. I also wish to restrict who has access to the application proxy and enforce multifactor authentication. This is easily accomplished by setting “User assignment required” in properties and adding a Conditional Access-policy. However. A really weird drawback in Azure AD is lack of support for nested groups. ...
August 30, 2018
Earlier this summer Microsoft announced Static Website Hosting for Azure Storage in public preview. An affordable way of hosting websites where you don’t need any server side logic. Instead of paying for, securing and updating my own Virtual Machine I decided to check it out. This of course led me deep down a rabbit hole thinking about resurrection my personal website in some way. Instead of doing this the boring way and just upload some good, old fashioned, HTML I thought why not #RubDevOpsOnIt and use a build pipeline in Visual Studio Team Services and a static site generator to create something cool? ...
April 30, 2018
Atlantic Ocean Road

May 1st marks the start of Stikk Ut. A local initiative to get people up from their sofa and get outside.

As the last day of april had amazing weather I decided to jump start the whole thing. Last leg for the day was a drive through the Atlantic ocean road and a quick stop at Svevestien and Storseisundet

April 9, 2018
Nordmøre Panorama

Panoramic view of the coastline from Tustna to Grip. Shot from Hallarøya

February 1, 2018
On my way back from Microsoft LEAP in Redmond I took advantage of Icelandair’s offer to have a “free” layover in Iceland. “free” because staying in Iceland, even if it’s just for two days isn’t cheap. For my only full day I joined a tour along the southern coast and among the stops was the black beach Reynisfjara. I have no idea who the couple having their wedding that day was, but congratulations to them. ...
October 27, 2017

To change VM Size when your virtual machines are part of an availability set can be a pain in the Azure Portal. Especially if the new size you want is not available on your current cluster and the resources have to be moved as well.

The entire process is a lot easier to do with powershell

September 29, 2017
Get-ADUser -SearchBase "ou=users,dc=contoso,dc=com" -Filter * -Properties Name, EmployeeNumber, UserPrincipalName, Manager | where {$_.Manager -eq $null} | ft Name, EmployeeNumber, UserPrincipalName, Manager

Because “Manager” is an extended attribute in Active Directory you can’t use -Filter {Manager -notlike “*“} like you would with basic attributes

September 22, 2017
To delete an entire tree structure with objects (typically Organizational Units) with the flag “ProtectedFromAccidentialDeletion” we first need to remove the flag. We can then select the top node and delete the entire tree. Needless to say, you should probably use this with caution. If you don’t want to remove the protection from every OU in the specified SearchBase you need to split up and run the command multiple times with different values for the SearchBase-argument ...