Category 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

How to add autoscale to an Azure VM scale set

It is easy to create an Azure VM scale set in the Azure portal, and there is an option to create it with basic CPU based autoscale settings. But suppose you created a scale set without any autoscale settings and … Continue reading

Posted in autoscale, 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? 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

Autoscaling VM scale sets with Azure host metrics

It’s now easier to set up autoscaling with Azure VM scale sets than it used to be. Until recently the only way to set up autoscaling for scale sets was by installing the Azure diagnostics extension in every VM. The … Continue reading

Posted in Cloud, Computers and Internet, Python, VM Scale Sets | 1 Comment

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

Install Azure CLI 2.0 on the Windows 10 bash on Ubuntu shell

Microsoft Azure CLI 2.0 is an excellent Azure CLI reboot based on Python which is now GA. If you want to install and run it on the bash on Ubuntu shell  provided as a developer feature with the Windows 10 … Continue reading

Posted in Cloud, Computers and Internet, Linux, Python, Ubuntu | Tagged , , , | 2 Comments