Which PowerShell cmdlet must be executed to create a golden image using Azure VM Image Builder?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Study for the Azure Virtual Desktop Exam AZ-140. Prepare with flashcards and multiple choice questions. Each question includes hints and explanations. Get ready for your exam!

To create a golden image using Azure VM Image Builder, the proper cmdlet to execute is Start-AzImageBuilderTemplate. This cmdlet initiates the process of building an image according to a specified template defined in previous steps. By using this cmdlet, you can start the creation of a customized VM image that can be used for deployment across multiple virtual machines, ensuring consistency and efficiency in your environment.

This cmdlet takes the defined template and provisions the necessary resources, executes any customization scripts, and ultimately creates the image which can be saved into Azure and used subsequently for deploying new VMs. It effectively encapsulates the process of taking the configurations and customizations you've set in the template and applying them to build a reliable golden image.

The other options pertain to different functionalities:

  • New-AzImageConfig is used to create the configuration for the image, which is a part of the overall process but does not directly initiate the image build.

  • New-AzResourceGroupDeployment is involved in deploying Azure resources defined in an ARM template, which can include resources for a VM image but is not specific to creating golden images with Azure VM Image Builder.

  • Set-AzVMCustomScriptExtension is used to run scripts on a virtual machine, typically

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy