QuestionQ126

VerifiedDevelop Azure compute solutions

You are preparing to deploy an Azure virtual machine (VM)-based application.

The application VMs have these requirements:

  • When a VM is provisioned, its firewall must be automatically configured before it can access Azure resources.
  • Supporting services must be installed by using an Azure PowerShell script stored in Azure Storage.

You need to ensure the requirements are met. Which features should you use?

Each feature may be used once, more than once, or not at all.

Drag & Drop
Explanation

The Custom Script Extension runs automatically during VM provisioning, so it can configure the firewall before the VM accesses Azure resources, and it can download and run a PowerShell script directly from Azure Storage to install the supporting services — satisfying both requirements. Serial console is an interactive troubleshooting tool that requires manual connection and cannot run automatically at provisioning, so it is incorrect for the firewall action. Run Command is for on-demand ad hoc execution, and Hybrid Runbook Worker targets on-premises/hybrid Automation scenarios, neither of which fits automatic post-provisioning configuration from a stored script.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!