AZ-800 · Question #273
Which of the following cmdlet would you use in PowerShell to domain-join a VM without connecting to it and manually configuring the connection?
The correct answer is B. Set-AzVmAdDomainExtension. 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…
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
How the community answered
(33 responses)- A6% (2)
- B91% (30)
- C3% (1)
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.
Topics
Community Discussion
No community discussion yet for this question.