Tag Archives: Python

Azure Cloud Shell, Python, and Container Instances

Despite being fairly new, the Azure Cloud Shell has quickly become my go-to place for scripting and programming with Azure. This article describes some of features that make cloud shell useful, and how to use the environment with Python. What’s … Continue reading

Posted in Cloud, Containers, Linux, Python, Ubuntu | Tagged , , , , , | 1 Comment

Figuring out Azure VM scale set machine names

How do the individual VM host names in a scale set get their names? Can you choose the names, or the naming convention? How do you correlate a machine name with a VM instance ID? When you create a scale … Continue reading

Posted in Cloud, Computers and Internet, Python, VM Scale Sets | Tagged , , , | 3 Comments

VIP Swap – blue-green deployment in Azure Resource Manager

How do you automate deployment of a multi-VM application from staging to production? Three high-level approaches might be: 1. Roll out deployment, update one or more VMs at a time. This can be a good approach to avoid downtime, as … Continue reading

Posted in Cloud, Computers and Internet, Python, VM Scale Sets | Tagged , , , | 2 Comments

Deploying Azure Container Service using the azurerm Python library

Azure Container Service is an easy to deploy container framework for Azure. It’s an open framework that among other things lets you choose whether to deploy DCOS or Swarm based cluster orchestration. You can deploy ACS directly from the Azure … Continue reading

Posted in Cloud, Computers and Internet, Containers, Python | Tagged , , , , | 3 Comments

Generating RSA keys with Python 3

I was looking for a quick way to generate an RSA key in Python 3 for some unit tests which needed a public key as an OpenSSH string. It ended up taking longer than expected because I started by trying … Continue reading

Posted in Computers and Internet, Cryptography, Python | Tagged | Leave a comment

Creating an Azure VM Scale Set with the azurerm Python library

There are various ways to create an Azure VM Scale Set. The easiest methods are: directly in the Azure portal, using the CLI quick-create command, and by deploying an Azure template. If instead of deploying a template you want to … Continue reading

Posted in Cloud, Computers and Internet, Python, VM Scale Sets | Tagged , , | Leave a comment

How to create an Azure VM with the azurerm Python library

There are at least two ways to work with Azure infrastructure using Python. You can use the official Azure SDK for Python which supports all Azure functionality, or the azurerm REST wrapper library, which is unofficial and supports a subset … Continue reading

Posted in Cloud, Computers and Internet, Python | Tagged , | Leave a comment