0

我正在尝试使用 Register-AzureRmAutomationDscNode powershell 命令在 Azure VM 上注册 DSC 配置。

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

Body: { "error": { "code": "InvalidTemplate", "message": "部署模板验证失败:'参数文件中的模板参数'timestamp'无效;它们不存在于原始模板中,并且因此无法在部署时提供。此模板唯一支持的参数是 'vmName, location, modulesUrl, configurationFunction, registrationKey, registrationUrl, nodeConfigurationName, configurationMode, configurationModeFrequencyMins, refreshFrequencyMins, rebootNodeIfNeeded, actionAfterReboot, allowModule Overwrite'。请参阅https ://aka.ms/arm-deploy/#parameter-file了解使用详情。'。” } }

该命令直到最近才正常工作。

cmdlet 是否损坏/更新?有没有其他人看到这个错误?

谢谢!

4

1 回答 1

2

这是我们这边的一个错误。您能否重试并确认它现在是否适合您?

于 2017-01-27T17:45:40.140 回答