ConfigurationModeパラメーターをApplyOnlyからApplyAndAutocorrectに変更します。
Register-AzureRmAutomationDscNodeコマンドレットは、Azure仮想マシンをAPS Desired State Configuration(DSC)ノードとしてAzureAutomationアカウントに登録します。
シナリオ:現在の技術的な問題
テストサーバーは、最初に展開されたときに正しく構成されていますが、時間の経過とともに構成がドリフトします。Azure AutomationStateConfigurationは構成の修正に失敗します。
Azure Automation State Configurationノードは、次のコマンドを使用して登録されます。

参照:
https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/register-azurermautomationdscnode?view=azurermps-6.13.0