Assigning configurations to nodes

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 that can also configure the DSC agent, that is localconfigurationmanager, on nodes before they can download configurations and apply them. There are multiple localconfigurationmanager parameters that can be configured—details 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 

After applying the configuration, the DSC nodes on Azure should appear as follows: