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?
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?
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
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
of course, now it's Register-AzAutomationDscNode
Answer is C. Check - https://docs.microsoft.com/en-us/powershell/dsc/managing-nodes/metaConfig?view=dsc-1.1
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
That's what that cmdlet does. It register a DSC to Automation so it can be automated. Answer is B - Run the cmdlet
"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.
Could you clarify how do you know it is already been done. as I understand, we are to yet to create project 7.
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.
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
Good reading and an correct answer. I agree with this answer.
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
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
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.
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
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
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.
yes, we have the Register-AzureRmAutomationDscNode command in PowerShell
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.
B Register-AzureRmAutomationDscNode cmdle
C - https://learn.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1
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
Seems like C, although it can be done in B as well.
Seems to be C https://learn.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1
answer is 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
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
C is still the correct answer. Modify the Refresh only takes configurations that have already been modified.