Administering Windows Server Hybrid Core Infrastructure (AZ-800) Practice

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for the AZ-800 exam with our comprehensive study resources. Utilize flashcards and multiple-choice questions with hints and explanations. Gain confidence and excel in your certification journey!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which Azure CLI command should be used to start an image build using Azure Image Builder?

  1. az resource create

  2. az resource invoke-action

  3. az vm create

  4. az image build

The correct answer is: az resource invoke-action

The appropriate command to start an image build using Azure Image Builder is accurately represented by the option involving invoking an action. In the context of Azure Image Builder, initiating an image build requires sending a command that invokes a specific action on the resource associated with the image. The command involves directing Azure to perform an operation that triggers the image build process, which is a part of the broader Azure resource management framework. This approach allows for more complex operations beyond resource creation, focusing specifically on executing actions related to existing resources. The other commands do not align with the function of starting an image build: 1. Creating a resource is not adequate for initiating an image build because the image build process relies on configurations and existing definitions rather than merely creating a new resource. 2. While "az vm create" is relevant for creating virtual machines, it is not applicable when it comes to building images, as that process is distinct from VM provisioning. 3. The other options more closely represent lower-level operations or actions that are not specifically designed for the task of starting an image build. Utilizing the correct command for initiating an image build ensures that the Azure infrastructure responds appropriately, leveraging its capabilities effectively to manage image configurations in a streamlined manner.