Exam AZ-400 All QuestionsBrowse all questions from this exam
Question 469

You add the virtual machines as managed nodes in Azure Automation State Configuration.

You need to configure the managed computers in Pool7.

What should you do next?

    Correct Answer: C

    B

    The Register-AzureRmAutomationDscNode cmdlet registers an Azure virtual machine as an APS Desired State Configuration (DSC) node in an Azure Automation account.

    Scenario: The Azure DevOps organization includes:

    The Docker extension -

    A deployment pool named Pool7 that contains 10 Azure virtual machines that run Windows Server 2019

    Reference:

    https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/register-azurermautomationdscnode

Discussion
motuOption: B

The Register-AzureRmAutomationDscNode cmdlet registers an Azure virtual machine as an APS Desired State Configuration (DSC) node in an Azure Automation account. See: https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/register-azurermautomationdscnode?view=azurermps-6.13.0

roydeen

of course, now it's Register-AzAutomationDscNode

Optimist_Indian

Answer is C. Check - https://docs.microsoft.com/en-us/powershell/dsc/managing-nodes/metaConfig?view=dsc-1.1

Exam_pas

Answer is B. The question is about applying configuration changes using automation not just changing configuration of virtual machines (VMs). https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/register-azurermautomationdscnode?view=azurermps-6.13.0

xRiot007

That's what that cmdlet does. It register a DSC to Automation so it can be automated. Answer is B - Run the cmdlet

AlMargoiOption: C

"You add the virtual machines as managed nodes in Azure Automation State Configuration.' - running the "register-AzAutomationDSCNode" would do just that, but that is already done. I would go for C.

jvyas

Could you clarify how do you know it is already been done. as I understand, we are to yet to create project 7.

mfawew223

The question states: You add the virtual machines as managed nodes in Azure Automation State Configuration. (machines are already added) You need to configure the managed computers in Pool7. (This is what we must do) The cmdlet in answer B will not configure the already added machines. So C is the answer.

rdemontisOption: C

Here the question states "You add the virtual machines as managed nodes in Azure Automation State Configuration". Register-AzureRmAutomationDscNode does just that. https://tkolber.medium.com/configuring-azure-dsc-automation-with-powershell-in-5-steps-454fbef9457b https://docs.microsoft.com/en-us/powershell/module/az.automation/register-azautomationdscnode?view=azps-7.3.2 Since you have already done now the question is "What should you do next?". In order to manatain the VMs status you need to set the ConfigurationMode property to ApplyAndAutocorrect. It is true that you could set the property directly in the Register-AzureRmAutomationDscNode command but from the way the question is posed it does not seem to have been specified. Since its default value is None you have to change it to ApplyAndAutocorrect. https://docs.microsoft.com/en-us/powershell/module/az.automation/register-azautomationdscnode?view=azps-7.3.2#parameters

DH333

Good reading and an correct answer. I agree with this answer.

EltoothOption: C

Nodes have already been registered so B is not needed. Next step is to set ConfigurationMode to ApplyandAutoCorrect https://docs.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1&viewFallbackFrom=dsc-3.0

akp1000Option: B

According to this document, you run the command twice. First to register your VM, then to update the mode settings. https://docs.microsoft.com/en-us/azure/automation/tutorial-configure-servers-desired-state

zellckOption: C

C is the answer. https://learn.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1 The Local Configuration Manager (LCM) is the engine of Desired State Configuration (DSC). The LCM runs on every target node, and is responsible for parsing and enacting configurations that are sent to the node. https://learn.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1#basic-settings - ConfigurationMode Specifies how the LCM actually applies the configuration to the target nodes.

YamchiOption: B

The options for this problem are lame: logically the answer should be "C" however you can achieve "C" with command in "B", With "Register-AzureRmAutomationDscNode" or new version "Register-AzAutomationDscNode" you can not only register the node with Automation account but you can also change the configuration properties https://learn.microsoft.com/en-us/azure/automation/tutorial-configure-servers-desired-state

syu31svcOption: B

https://docs.microsoft.com/en-us/azure/automation/tutorial-configure-servers-desired-state: "Use the Register-AzAutomationDscNode cmdlet to register a VM as a managed node and specify configuration properties" Answer is B

sha1979

But in the answer section it says "Run the Register-AzureRmAutomationDscNode Azure Powershell cmdlet", do we have any command let called Register-AzureRmAutomationDscNode? I would say answer is "C" - Configure LCM using Automation Portal.

LGWJ12

yes, we have the Register-AzureRmAutomationDscNode command in PowerShell

renzokuOption: C

The premise mention: You add the virtual machines as managed nodes in Azure Automation State Configuration. I suppose the virtual machines have been registered and connected with to Azure automation account. Then you only change the ConfigurationMode property to applied and enforcing configurations.

Zdujgfr567783ffOption: B

B Register-AzureRmAutomationDscNode cmdle

uncledanaOption: C

C - https://learn.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1

6c01613Option: C

Guys be careful, when you register a node you associate to it the compiled node configuration you pre-uploaded. Who is responsible of managing the nodes configs is the AzAutomationStateConfig engine, that is Lical Configuration Manager. Since the question in asking to CONFIGURE the computers i suggest to select C. The ConfigurationMode prop "Specifies how the LCM actually applies the configuration to the target nodes. Possible values are "ApplyOnly","ApplyAndMonitor", and "ApplyAndAutoCorrect"." https://learn.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1

vsvaidOption: C

Seems like C, although it can be done in B as well.

yana_bOption: C

Seems to be C https://learn.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1

AymanAkkOption: C

answer is C

gaboOption: C

The question says that you already registered the agent nodes in the automation account and "You need to configure the managed computers in Pool7", so the correct option should be to Set the "-ConfigurationMode" property

Pandur1Option: A

The posted option C does not match the answers here anymore. Should be now A - Modify the Refresh... This is also mentioned here as the first step: https://docs.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1

Chiboy

C is still the correct answer. Modify the Refresh only takes configurations that have already been modified.