ConfigurationMode パラメータを ApplyOnly から ApplyAndAutocorrect に変更してください。
Register-AzureRmAutomationDscNode コマンドレットは、Azure 仮想マシンを Azure Automation アカウントの APS Desired State Configuration (DSC) ノードとして登録します。
シナリオ:現在の技術的問題
テストサーバーは初回デプロイ時には正しく構成されますが、時間の経過とともに構成のずれが生じます。Azure AutomationState Configuration を使用しても、この構成を修正することはできません。
Azure Automation State Configuration ノードは、以下のコマンドを使用して登録されます。

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