Cloud-init is the industry standard for initialising cloud instances. Available on Ubuntu images by default, it enables users to automate the provisioning of an operating system image into a fully running state – with key initialisation tasks handled at the first boot of an instance.
Cloud-init delivers significant time savings over manually producing and maintaining cloud images, and it can be used to seamlessly deploy Ubuntu virtual machines within Microsoft Azure.
This guide, joint with Microsoft, will explain how to utilise cloud-init with Ubuntu on Azure, including:
- An overview of the roles of metadata and user data
- How to customise instances when deploying through the Azure Marketplace, Azure CLI, or Azure Resource Manager
- Writing scripts with Azure SDK for Python to further streamline deployment and achieve even greater customisation