Assigning Configuration to Nodes

Now, the compiled DSC configurations can be applied to nodes. Use Register-AzureRmAutomationDscNode to assign the configuration to a node. The NodeConfigurationName parameter identifies the configuration name that should be applied to the node. This is a powerful cmdlet which can also configure the DSC agent that is localconfigurationmanager on nodes before they can download configurations and apply the same. There are multiple localconfigurationmanager parameters that can be configured and details about the same are available at https://docs.microsoft.com/en-us/PowerShell/dsc/metaconfig.

    Register-AzureRmAutomationDscNode -ResourceGroupName "omsauto" -AutomationAccountName "datacenterautomation" -AzureVMName testtwo -ConfigurationMode ApplyAndAutocorrect -ActionAfterReboot ContinueConfiguration -AllowModuleOverwrite $true -AzureVMResourceGroup testone -AzureVMLocation "West Central US" -NodeConfigurationName "ConfigureSiteOnIIS.WebServer" -Verbose 
  

The DSC nodes on Azure after applying the configuration to the node should look as shown next:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.66.156