Monthly Archives: January 2016

Convert JSON to escaped string in Python

If you have a JSON formatted file, and you want to put it in the form of a string, with double quotes and newlines escaped, it’s a pain to do this manually. Note: if all you want to do is … Continue reading

Posted in Python | Tagged | 1 Comment

Azure Resource Manager REST calls from Python

This article describes how to make REST calls to Azure Resource Manager (ARM) from Python. In particular, how to authenticate. Once you have an authentication token you just add it to your REST call headers when calling the Azure REST … Continue reading

Posted in Cloud, Computers and Internet, Python | Tagged , | 5 Comments

How to include code fragments in a WordPress blog post

I’ve had to re-learn how to put fragments of code in a WordPress blog a couple of times (thanks to a longish break without posting), so I’m adding some notes on how to do it here, leaving no excuse for … Continue reading

Posted in Computers and Internet | Leave a comment

How to call the Azure Resource Manager REST API from C#

Calling the Azure Resource Manager REST API from C# is pretty straightforward. You just add an access token to the request header. Getting that access token though, especially for the first time, does involve a few steps. The purpose of … Continue reading

Posted in Cloud, Computers and Internet | Tagged | 24 Comments