Azure VM Image Builder - Microsoft запустила сервис Azure для создания собственных образов виртуальных машин Linux или Windows
Azure VM Image Builder - Microsoft запустила сервис Azure для создания собственных образов виртуальных машин Linux или Windows
Microsoft запустила сервис Azure VM Image Builder для создания пользователями собственных образов виртуальных машин Linux или Windows. Сервис Azure VM Image Builder позволяет формировать образы с помощью шаблонов и конфигураций, как новых, так и существующих.
Разработчики отмечают, что создание образов ВМ всегда было важным, но сложным процессом. Приходилось сначала собрать данные в организации, затем создать нужную конфигурацию и настроить инфраструктуру для работы. Новая же система позволяет автоматизировать ряд шагов и улучшить результат. Такой подход позволит упростить развёртывание ВМ на базе разных ОС и в разных облаках, поскольку в шаблонах, которые предлагает Azure, есть всё необходимое.
В списке сценариев использования Azure VM Image Builder есть следующие:
- Оптимизация процесса создания образа Linux, Windows или базового с минимальными настройками безопасности.
- Интеграция приложений и конфигураций в образ, чтобы после его развёртывания виртуальные машины могли сразу же выполнять рабочие нагрузки.
- Исправления и обновления существующих образов Linux или Windows, а также создание их из образов в Azure Marketplace.
Azure Image Builder supports the following features:
- Creation of baseline images, that includes your minimum security and corporate configurations, and allow departments to customize it further.
- Integration of core applications, so VM can take on workloads after creation, or add configurations to support Windows Virtual Desktop images.
- Patching of existing images, Image Builder will allow you to continually patch existing custom images.
- Connect image builder to your existing virtual networks, so you can connect to existing configuration servers (DSC, Chef, Puppet etc.), file shares, or any other routable servers/services.
- Integration with the Azure Shared Image Gallery, allows you to distribute, version, and scale images globally, and gives you an image management system.
- Integration with existing image build pipelines, just call Image Builder from your pipeline, or use the simple Image Builder Azure DevOps Task.
- Migrate an existing image customization pipeline to Azure. Use your existing scripts, commands, and processes to customize images.
- Creation of images in VHD format to support Azure Stack.
Azure Image Builder will support Azure Marketplace base OS images:
- Ubuntu 18.04
- Ubuntu 16.04
- RHEL 7.6, 7.7
- CentOS 7.6, 7.7
- SLES 12 SP4
- SLES 15, SLES 15 SP1
- Windows 10 RS5 Enterprise/Enterprise multi-session/Professional
- Windows 2016
- Windows 2019
The Azure VM Image Builder is a fully managed Azure service that is accessible by an Azure resource provider. Provide a configuration to the service that specifies the source image, customization to perform and where the new image is to be distributed to
Template configurations can be passed using PowerShell, Az CLI, ARM templates and using the Azure VM Image Builder DevOps task, when you submit it to the service we will create an Image Template Resource. When the Image Template Resource is created you will see a staging resource group created in your subscription, in the format: IT_<DestinationResourceGroup><TemplateName>(GUID). The staging resource group contains files and scripts referenced in the File, Shell, PowerShell customization in the ScriptURI property.
To run the build you will invoke Run
on the Image Template resource, the service will then deploy additional resources for the build, such as a VM, Network, Disk, Network Adapter etc. If you build an image without using an existing VNET Image Builder will also deploy a Public IP and NSG, the service connects to the build VM using SSH or WinRM. If you select an existing VNET, then the service will deploy using Azure Private Link, and a Public IP address is not required, for more details on Image Builder networking review the details.
When the build finishes all resources will be deleted, except for the staging resource group and the storage account, to remove these you will delete the Image Template resource, or you can leave them there to run the build again.
There are multiple examples and step by step guides in this documentation, which reference configuration templates and solutions in the Azure Image Builder GitHub repository