Register-AzureRmAutomationDscNode powershellコマンドを使用してAzure VMにDSC設定を登録しようとしています。Register-AzureRmAutomationDscNodeがBadRequestを返します
Register-AzureRmAutomationDscNode -ResourceGroupName $p_automationResourceGroupName `
-AutomationAccountName $p_automationAccountName `
-AzureVMResourceGroup $p_tenantResourceGroupName `
-AzureVMName $v_tenantVMName `
-AzureVMLocation $p_tenantResourceGroupLocation `
-NodeConfigurationName "$($p_DSCConfigurationName).localhost" `
-ConfigurationMode ApplyAndMonitor `
-ActionAfterReboot ContinueConfiguration `
-RebootNodeIfNeeded $True -Verbose -Debug
私は次の出力を参照してください。
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
BadRequest
Headers:
Pragma : no-cache
x-ms-failure-cause : gateway
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-request-id : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
x-ms-correlation-request-id : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
x-ms-routing-request-id : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
Date : Thu, 26 Jan 2017 16:15:36 GMT
ボディ: { "エラー":{ "コード": "InvalidTemplate"、 "メッセージ":「展開テンプレートの検証に失敗しました: 'パラメータテンプレートのテンプレートパラメータ'タイムスタンプ 'は有効ではなく、元のテンプレートには存在しないため、デプロイメント時に提供することはできません。 は、' vmName、location 、modulesUrl、configurationFunction、registrationKey、registrationUrl、nodeConfigurationName、configurationMode、configurationModeFrequencyMins、refreshFrequencyMins、rebootNodeIfNeeded、actionAfterReboot、allowModule 'を上書きします。使用方法の詳細についてはhttps://aka.ms/arm-deploy/#parameter-fileを参照してください。 "。」 } }
をこのコマンドは。
は?壊れた/更新コマンドレットです誰がこのエラーを見ている最近まで罰金働いていた?
感謝!
ありがとうございます。 –