actions-marketplace-validations/Build Azure Virtual Machine Image

Create custom virtual machine images that contain artifacts built in CI workflows

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Nov 22, 2022
License
MIT
Runtime
Deprecated runtime

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/azure_build-vm-image@49519e8b4a718414222fa83243bc6bc019a3edf1 # no releases — HEAD as of 2026-07-13

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
locationThis is the Azure region in which the Image Builder will run.
resource-group-nameThis is the Resource Group where the temporary Imagebuilder Template resource will be created.yes
image-builder-template-nameThe name of the image builder template resource to be used for creating and running the Image builder service.
build-timeout-in-minutesThe value is an integer which is used as timeout in minutes for running the image build.240
vm-sizeYou can override the VM size, from the default value i.e. Standard_D1_v2.Standard_D1_v2
managed-identityThe identity that will be used to do the role assignment and resource creation
source-image-type[ PlatformImage | SharedImageGallery | ManagedImage ]PlatformImage
source-os-typeOS types supported: [ linux | windows ].yes
source-imageValue of source-image supported by Azure Image Builder.
customizer-sourceThis takes the path to a directory or a file in the runner. By default, it points to the default download directory of the github runner.
customizer-scriptThe customer can enter multi inline powershell or shell commands and use variables to point to directories inside the downloaded location.
customizer-windows-updateThe value is boolean and set to false by default. This value is for Windows images only, the image builder will run Windows Update at the end of the customizations and also handle the reboots it requires.false
dist-typeManagedImage | SharedImageGallery | VHDManagedImage
dist-resource-idImage Resource Id to be created by AIB
dist-locationlocation of Image created by AIB
run-output-nameEvery Image builder run is identified with a unique run id.
dist-image-tagsThe values set will be used to set the user defined tags on the custom image artifact created.
namedescription
imagebuilder-run-statusThis value of this output will be the value of Image builder Run status set to either Succeeded or Failed based on the runState returned by Azure Image Builder.
run-output-nameThe action emits output value run-output-name which can be used to get the details of the Image Builder Run.
custom-image-uriUpon successful completion, The github action emits the URI or resource id of the Image distributed.