No description
  • Bicep 94.2%
  • Shell 5.8%
Find a file
2025-11-04 12:32:10 -08:00
bicep Switch pools to Standard_D2alds_v6 (#34) 2025-11-04 12:32:10 -08:00
profiles Remove old Ubuntu 22.04 profiles (#33) 2025-10-30 08:31:43 -07:00
.gitignore Initial implementation of the image builder. 2020-11-04 13:10:40 -08:00
ansible.cfg Conversion to Bicep definitions (#31) 2025-10-28 16:50:58 -07:00
create-image.yml Conversion to Bicep definitions (#31) 2025-10-28 16:50:58 -07:00
create-vm.yml Update scale set configs (#32) 2025-10-28 18:09:07 -07:00
inventory.yml Conversion to Bicep definitions (#31) 2025-10-28 16:50:58 -07:00
LICENSE Initial commit 2020-11-03 11:59:14 -08:00
list-image-versions.yml Conversion to Bicep definitions (#31) 2025-10-28 16:50:58 -07:00
README.md Conversion to Bicep definitions (#31) 2025-10-28 16:50:58 -07:00

azure-pipelines-test-vm

Virtual machine image builder for running ansible-test on Azure Pipelines.

Building and Deploying a VM Image

These instructions will use the Ubuntu-24.04 image in the examples. Substitute the desired image as needed.

Update the Image Profile

Create or update the desired image profile in the profiles directory. Profiles are used to define how an image should be built.

Build the Image

Build the image defined by the profile with the command:

ansible-playbook create-image.yml -e profile=Ubuntu-24.04

NOTE: This step is expected to run for up to an hour. Come back and check on it later.

Listing the Image Versions

Retrieve the list of image versions with the command:

ansible-playbook list-image-versions.yml -e profile=Ubuntu-24.04

Testing the Image

If needed, an image can be tested before being deployed:

ansible-playbook create-vm.yml -e profile=Ubuntu-24.04 -e image_version=1.0.0

NOTE: Don't forget to remove the test VM's resource group after testing is complete.

Deploy the Image

Once the image has been built, update and deploy the appropriate scale sets in the bicep directory.