Tag Archives: Python

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 , , , | Leave a comment

VIP Swap – blue-green deployment in Azure Resource Manager

How do you automate deployment of a multi-VM application from staging to production? Two 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 only … 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 , , , , | Leave a comment

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

How to upgrade an Azure VM Scale Set without shutting it down

Note: This article was later published in the official Azure documentation. You can find it here: Upgrade a virtual machine scale set. This article describes how you can roll out an OS update to an Azure VM Scale Set without … Continue reading

Posted in Cloud, Python, VM Scale Sets | Tagged , , | 6 Comments