nerdexam
Microsoft

AZ-104 · Question #276

You plan to automate the deployment of a virtual machine scale set that uses the Windows Server 2016 Datacenter image. You need to ensure that when the scale set virtual machines are provisioned…

The correct answer is A. Upload a configuration script D. Modify the extensionProfile section of the Azure Resource Manager template. The Custom Script Extension downloads and executes scripts on Azure VMs. This extension is useful for post deployment configuration, software installation, or any other configuration / management task. Scripts can be downloaded from Azure storage or GitHub, or provided to the…

Submitted by javi_es· Mar 4, 2026Deploy and manage Azure compute resources

Question

You plan to automate the deployment of a virtual machine scale set that uses the Windows Server 2016 Datacenter image. You need to ensure that when the scale set virtual machines are provisioned, they have web server components installed. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

Options

  • AUpload a configuration script
  • BCreate an automation account
  • CCreate an Azure policy
  • DModify the extensionProfile section of the Azure Resource Manager template
  • ECreate a new virtual scale set in the Azure portal

How the community answered

(58 responses)
  • A
    79% (46)
  • B
    12% (7)
  • C
    3% (2)
  • E
    5% (3)

Explanation

The Custom Script Extension downloads and executes scripts on Azure VMs. This extension is useful for post deployment configuration, software installation, or any other configuration / management task. Scripts can be downloaded from Azure storage or GitHub, or provided to the Azure portal at extension run-time. The Custom Script extension integrates with Azure Resource Manager templates, and can also be used with the Azure CLI, Azure PowerShell, Azure portal, or the REST API The following Custom Script Extension definition downloads a sample script from GitHub, installs the required packages, then writes the VM instance hostname to a basic HTML page. https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-install-apps-template

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice