
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 構成を Automation アカウント Contoso17 にインポートします。このコマンドでは 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- azurermautomationdscconfiguration
https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/start- azurermautomationdsccompilationjob