nerdexam
Microsoft

AZ-204 · Question #133

Drag and Drop Question You are preparing to deploy an Azure virtual machine (VM)-based application. The VMs that run the application have the following requirements: - When a VM is provisioned the…

The correct answer is Run Command; Custom Script Extension. Run Command is the correct feature for automatically configuring the firewall when a VM is provisioned, as it allows executing scripts on a VM at deployment time without requiring network connectivity or agent configuration, making it ideal for pre-access firewall setup. Custom…

Submitted by minji_kr· Mar 30, 2026Deploy and manage Azure compute resources - specifically configuring and automating Azure VM deployment using extensions and built-in VM management features (AZ-104 / AZ-305)

Question

Drag and Drop Question You are preparing to deploy an Azure virtual machine (VM)-based application. The VMs that run the application have the following requirements: - When a VM is provisioned the firewall must be automatically configured before it can access Azure resources - Supporting services must be installed by using an Azure PowerShell script that is stored in Azure Storage You need to ensure that the requirements are met. Which features should you use? To answer, drag the appropriate features to the correct requirements. Each feature may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point. Answer:

Exhibit

AZ-204 question #133 exhibit

Answer Area

Drag items

Run CommandSerial consoleHybrid Runbook WorkerCustom Script Extension

Correct arrangement

  • Run Command
  • Custom Script Extension

Explanation

Run Command is the correct feature for automatically configuring the firewall when a VM is provisioned, as it allows executing scripts on a VM at deployment time without requiring network connectivity or agent configuration, making it ideal for pre-access firewall setup. Custom Script Extension is the correct feature for installing supporting services using a PowerShell script stored in Azure Storage, as it is specifically designed to download and execute scripts (including from Azure Storage) on Azure VMs during or after provisioning to automate post-deployment configuration tasks.

Topics

#Azure Virtual Machines#VM Extensions#Run Command#Automation

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice