2016-09-23 7 views
0

Azureでオートメーションアカウントを正常に作成し、そのアカウントでモジュールとDSCの設定を作成するARMテンプレートを作成しました。ARMテンプレートから404でAzureオートメーションDSCコンパイルジョブが失敗しました。

Microsoft.Automation/automationAccounts/Compilationjobsリソースを追加してDSC設定をコンパイルすると、この手順で404 - ファイルまたはディレクトリが見つかりませんでした。

次のようにCompilationjobsリソースは、テンプレート内のトップレベルのリソースとして存在する:

{ 
    "apiVersion": "2015-10-31", 
    "type": "Microsoft.Automation/automationAccounts/Compilationjobs", 
    "name": "automationAccountName/jobId123", 
    "location": "[variables('location')]", 
    "tags": { 
    }, 
    "dependsOn": [ 
    "Microsoft.Automation/automationAccounts/automationAccountName", 
    "modulesResourceLoop" 
    ], 
    "properties": { 
    "configuration": { 
     "name": "DSCConfigurationName" 
    } 
    } 
} 

私はコンパイルジョブが作成され、正常に完了しているのと同じ内容でStart-AzureRmAutomationDscCompilationJobを呼び出すと。

答えて

0

設定をコンパイルするには、compliationJobを作成する必要があります。フードの下では/CompiliationJobs/{guid}へのPUTコールです。コンパイルジョブを呼び出すときに、新しいテンプレートを腕のテンプレートに渡すことです。

{ 
    "name": "[parameters('compilationJobGuid')]", 
    "apiVersion": "2015-10-31", 
    "type": "Microsoft.Automation/automationAccounts/Compilationjobs", 
    "location": "[variables('location')]", 
    "tags": { 
    }, 
    "dependsOn": [ 
    "Microsoft.Automation/automationAccounts/automationAccountName", 
    "modulesResourceLoop" 
    ], 
    "properties": { 
    "configuration": { 
     "name": "DSCConfigurationName" 
    } 
    } 
} 
:次のような

何かが、あなたはパラメータcompilationJobGuidを定義する必要があります

関連する問題