How to move an Azure VM to another virtual network

So there you are. You created a new VM late at night and didn't pay close attention when hitting enter on that New-AzVM command. Unfortunately it got placed in the wrong virtual network/subnet. "Okay, let's just create another NIC" - you think. But things are not that easy.…

How to return a custom HTTP status code using WebAPI 2

When developing a RESTful API we sometimes need to return an HTTP status code that is not included in Microsoft's HttpStatusCode enumeration. For example this is the case for HTTP 423 (Locked) and others. This post will give you an example on how to return such a custom HTTP status…