Windows Server 2019 を実行する VM1 という名前の Azure VM を作成します。
VM1 は図に示すように構成されています (図タブをクリックします)。

VM1 に対して Desired State Configuration を有効にする必要があります。
まず何をすべきでしょうか?
正解:B
Scenario Overview:
You have a Windows Server 2019 virtual machine (VM1) that has been created in Azure but is currently stopped (deallocated), as indicated by the exhibit (typical of this question from the AZ-104 pool). You need to enable Desired State Configuration (DSC) on this VM.
Understanding Azure Desired State Configuration (DSC)
Azure Desired State Configuration (DSC) is a management platform used to define and maintain configuration consistency for Azure virtual machines and other systems. In Azure, DSC can be managed via Azure Automation State Configuration, or locally using PowerShell DSC on the virtual machine.
To enable DSC on an Azure VM:
The VM must be running and accessible so that the DSC extension can be installed.
The Azure VM Agent must be operational (it runs only when the VM is started).
Configuration scripts or extensions (like Microsoft.Powershell.DSC) can only be applied to an active VM.
Why "Start VM1" is the Correct First Step
From the Microsoft Azure Administrator documentation (PowerShell DSC Extension for Azure VMs):
"Before you can enable the Azure Desired State Configuration extension on a virtual machine, the VM must be in the running state. The Azure VM Agent communicates with Azure to install and configure the DSC extension, and this agent only runs when the VM is powered on." This means that if VM1 is stopped (deallocated), Azure cannot deploy or enable the DSC extension, because it requires the VM to be active and connected to the Azure platform fabric.
Why the Other Options Are Incorrect
A). Configure a DNS name for VM1:
DNS naming allows external or internal connectivity but is not a prerequisite for enabling DSC. DSC configuration relies on the Azure VM Agent, not on DNS name resolution.
C). Capture a snapshot of VM1:
Snapshots are used for backup or replication, not for enabling configuration management features such as DSC.
D). Connect to VM1:
You cannot connect to VM1 (RDP/SSH) until it is started. Starting the VM is a prerequisite before any configuration management operation.
Key Documentation Reference (Microsoft Learn):
"The PowerShell Desired State Configuration (DSC) extension for Windows is used to configure Windows VMs. The extension requires the VM to be running so the Azure VM Agent can install and apply configurations."
- Source: Microsoft Learn - Azure Virtual Machine extensions and features overview / PowerShell DSC extension