
Explanation:
手順1:拡張子が.ps1のDesired State Configuration(DSC)構成ファイルを作成します。
手順2:Import-AzureRmAutomationDscConfiguration Azure Powershellコマンドレットを実行するImport-AzureRmAutomationDscConfigurationコマンドレットは、APSの望ましい状態の構成(DSC)構成をAzureAutomationにインポートします。単一のDSC構成を含むAPSスクリプトのパスを指定します。
例:
PS C:\> Import-AzureRmAutomationDscConfiguration -AutomationAccountName "Contoso17"-ResourceGroupName "ResourceGroup01" -SourcePath "C:\ DSC \ client.ps1" -Forceこのコマンドは、client.ps1という名前のファイルのDSC構成をContoso17。このコマンドは、Forceパラメーターを指定します。既存のDSC構成がある場合は、このコマンドがそれを置き換えます。
手順3:Start-AzureRmAutomationDscCompilationJob Azure Powershellコマンドレットを実行するStart-AzureRmAutomationDscCompilationJobコマンドレットは、Azure AutomationでAPSの必要な状態の構成(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