nerdexam
Microsoft

AZ-104 · Question #682

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

The correct answer is D. a Desired State Configuration (DSC) extension. To ensure NGINX is installed on Azure virtual machines deployed as part of a virtual machine scale set via an ARM template, a Desired State Configuration (DSC) extension is the appropriate tool.

Submitted by suresh_in· Mar 30, 2026Deploy and manage Azure compute resources

Question

You plan to deploy several Azure virtual machines that will run Windows Server 2019 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

  • Athe New-AzConfigurationAssignment cmdlet
  • BAzure Application Insights
  • Cthe Publish-AzVMDscConfiguration cmdlet
  • Da Desired State Configuration (DSC) extension

How the community answered

(39 responses)
  • A
    18% (7)
  • B
    5% (2)
  • C
    5% (2)
  • D
    72% (28)

Why each option

To ensure NGINX is installed on Azure virtual machines deployed as part of a virtual machine scale set via an ARM template, a Desired State Configuration (DSC) extension is the appropriate tool.

Athe New-AzConfigurationAssignment cmdlet

The New-AzConfigurationAssignment cmdlet is used for Azure Policy guest configuration assignments, which are typically for auditing or enforcing compliance rather than initial software deployment for a VMSS via an ARM template.

BAzure Application Insights

Azure Application Insights is a service for application performance monitoring and diagnostics, not for deploying or configuring software on virtual machines.

Cthe Publish-AzVMDscConfiguration cmdlet

The Publish-AzVMDscConfiguration cmdlet uploads a DSC configuration to Azure Storage, which is a preparatory step, but it does not actually apply the configuration to the virtual machines itself.

Da Desired State Configuration (DSC) extensionCorrect

An Azure Desired State Configuration (DSC) extension can be included in an ARM template for a virtual machine scale set to automatically install and configure software like NGINX on all instances after they are deployed.

Concept tested: VM Scale Set configuration using DSC extension

Source: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-extension

Topics

#DSC extension#VMSS#ARM templates#configuration management

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice