nerdexam
Microsoft

AZ-104 · Question #745

You plan to deploy several Azure virtual machines that will run Windows Server 2022 in a virtual machine scale set by using an Azure Resource Manager template. You need to ensure that NGINX is…

The correct answer is A. Azure Custom Script Extension. To install NGINX on Azure virtual machines in a scale set after deployment using an ARM template, the Azure Custom Script Extension should be used.

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

Question

You plan to deploy several Azure virtual machines that will run Windows Server 2022 in a virtual machine scale set by using an Azure Resource Manager template. You need to ensure that NGINX is available on all the virtual machines after they are deployed. What should you use?

Options

  • AAzure Custom Script Extension
  • BDeployment Center in Azure App Service
  • CMicrosoft Entra Application Proxy
  • Dthe Publish-AzVMDscConfiguration cmdlet

How the community answered

(16 responses)
  • A
    75% (12)
  • B
    6% (1)
  • C
    6% (1)
  • D
    13% (2)

Why each option

To install NGINX on Azure virtual machines in a scale set after deployment using an ARM template, the Azure Custom Script Extension should be used.

AAzure Custom Script ExtensionCorrect

The Azure Custom Script Extension allows you to download and execute scripts, such as a script to install NGINX, on Azure virtual machines. When incorporated into an ARM template for a scale set, this extension ensures the script runs automatically on all deployed instances.

BDeployment Center in Azure App Service

Deployment Center in Azure App Service is used for deploying applications to Azure App Service, a PaaS offering, not for configuring software on Azure virtual machines.

CMicrosoft Entra Application Proxy

Microsoft Entra Application Proxy provides secure remote access to on-premises web applications and is unrelated to post-deployment software installation on virtual machines.

Dthe Publish-AzVMDscConfiguration cmdlet

The `Publish-AzVMDscConfiguration` cmdlet publishes a Desired State Configuration (DSC) script, but it is not the mechanism used within an ARM template to execute configuration on VM instances; a DSC Extension would be used for execution, or more simply, the Custom Script Extension.

Concept tested: Post-deployment VM configuration using Custom Script Extension

Source: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice