AZ-800 · Question #273
AZ-800 Question #273: Real Exam Question with Answer & Explanation
The correct answer is B: Set-AzVmAdDomainExtension. {"question_number": 9, "correct_answer": "B", "explanation": "The correct PowerShell cmdlet to domain-join an Azure VM without manually connecting to it is 'Set-AzVmAdDomainExtension'. This cmdlet installs and configures the Azure VM AD Domain Join extension on a specified VM, wh
Question
Which of the following cmdlet would you use in PowerShell to domain-join a VM without connecting to it and manually configuring the connection?
Options
- ASet-AzVmAdDomainConfig
- BSet-AzVmAdDomainExtension
- CSet-AzVmConnectDomainExtension
- DSet-AzVmAdDomainManualConfig
Explanation
{"question_number": 9, "correct_answer": "B", "explanation": "The correct PowerShell cmdlet to domain-join an Azure VM without manually connecting to it is 'Set-AzVmAdDomainExtension'. This cmdlet installs and configures the Azure VM AD Domain Join extension on a specified VM, which handles the domain-join process automatically in the background - no RDP or direct console access is required. The extension is injected by the Azure agent running inside the VM and executes the domain-join operation using the credentials and domain information you provide as parameters. The other options are fictitious: 'Set-AzVmAdDomainConfig', 'Set-AzVmConnectDomainExtension', and 'Set-AzVmAdDomainManualConfig' do not exist as real Azure PowerShell cmdlets. This is part of the Azure VM extensions framework, which allows out-of-band configuration of VMs without interactive login.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.