
Explanation:

手順 1: 拡張子が .ps1 の Desired State Configuration (DSC) 構成ファイルを作成します。
手順 2: Import-AzureRmAutomationDscConfiguration Azure Powershell コマンドレットを実行します。Import-AzureRmAutomationDscConfiguration コマンドレットは、APS Desired State Configuration (DSC) 構成を Azure Automation にインポートします。単一の DSC 構成を含む APS スクリプトのパスを指定します。
例:
PS C:\>Import-AzureRmAutomationDscConfiguration -AutomationAccountName
"Contoso17"-ResourceGroupName "ResourceGroup01" -SourcePath "C:\DSC\client.ps1" -Force このコマンドは、client.ps1 という名前のファイル内の DSC 構成を、Contoso17 という名前の Automation アカウントにインポートします。このコマンドは Force パラメーターを指定します。既存の DSC 構成がある場合、このコマンドはそれを置き換えます。
手順 3: Start-AzureRmAutomationDscCompilationJob Azure Powershell コマンドレットを実行します。Start-AzureRmAutomationDscCompilationJob コマンドレットは、Azure Automation で APS Desired State Configuration (DSC) 構成をコンパイルします。
参考文献:
https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/import-azurermautomationdscconfigur
https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/start-azurermautomationdsccompilatio