
説明

ステップ 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