nerdexam
Microsoft

AZ-104 · Question #686

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 A. 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 rania.sa· 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

  • Aa Desired State Configuration (DSC) extension
  • Ba Microsoft Intune device configuration profile
  • Cthe Publish-AzVMDscConfiguration cmdlet
  • Dthe New-AzConfigurationAssignment cmdlet

How the community answered

(57 responses)
  • A
    81% (46)
  • B
    2% (1)
  • C
    11% (6)
  • D
    7% (4)

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.

Aa 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.

Ba Microsoft Intune device configuration profile

Microsoft Intune is a cloud-based service for mobile device management (MDM) and mobile application management (MAM), primarily for end-user devices, not for configuring server-side software on Azure VMs in a scale set.

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.

Dthe 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.

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