无法注册DSC节点 [英] Not able to Register DSC Node
问题描述
大家好,
我正在尝试使用以下命令注册DSC节点,但是它连续失败.我的机器上安装了AzureRm.Automation 5.1.1模块.我正在尝试使用DSC安装SQL Server和VS 2017.任何帮助将不胜感激.
I am trying to register DSC node using below command but it is failing continuously. I have AzureRm.Automation 5.1.1 module installed on my machine. I am trying to install SQL server and VS 2017 using DSC. Any help will be much appreciated.
命令:Register-AzureRmAutomationDscNode -ResourceGroupName $ DSCRGName -AutomationAccountName $ AutomationAccountName -AzureVMName $ VMName -ConfigurationModeFrequencyMins 30-详细-RebootNodeIfNeeded $ true -ConfigurationMode"ApplyandMonitor" -AzureVMResourceGroup $ VMRGName -NodeConfigurationName $ DSCConfiguration
Command: Register-AzureRmAutomationDscNode -ResourceGroupName $DSCRGName -AutomationAccountName $AutomationAccountName -AzureVMName $VMName -ConfigurationModeFrequencyMins 30 -verbose -RebootNodeIfNeeded $true -ConfigurationMode "ApplyandMonitor" -AzureVMResourceGroup $VMRGName -NodeConfigurationName $DSCConfiguration
错误:
Register-AzureRmAutomationDscNode:由于缺少一个或多个必需参数而无法处理命令:ResourceGroupName TemplateFile.
在第1行:char:1
+ Register-AzureRmAutomationDscNode -AutomationAccountName" XXX ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo :CloseError:(:) [Register-AzureRmAutomationDscNode],ParameterBindingException
+ FullyQualifiedErrorId:Microsoft.Azure.Commands.Automation.Cmdlet.RegisterAzureAutomationDscNode
Register-AzureRmAutomationDscNode : Cannot process command because of one or more missing mandatory parameters: ResourceGroupName TemplateFile.
At line:1 char:1
+ Register-AzureRmAutomationDscNode -AutomationAccountName "XXX...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Register-AzureRmAutomationDscNode], ParameterBindingException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Automation.Cmdlet.RegisterAzureAutomationDscNode
谢谢
推荐答案
您好,阿舒罗(Ashuro),您好!积极与Azure自动化团队合作,以深入浅出.同时,您可以尝试这种解决方法吗?通过添加以下命令,我能够成功注册DSC节点 AzureVM 位置参数.下面的cmd示例...
Hi Ashuro, sorry for the delayed response. Actively working with the Azure Automation team to get to the bottom of this. In the meantime, can you try this workaround? I was able to successfully register a DSC node by adding the AzureVMLocation Parameter. sample cmd below...
Register-AzureRmAutomationDscNode -ResourceGroupName test2018 -AutomationAccountName testAcctName2018 -AzureVMName"DSCnode-01"; -AzureVMResourceGroup"contosogroup"; -AzureVMLocation" East 美国" -verbose
Register-AzureRmAutomationDscNode -ResourceGroupName test2018 -AutomationAccountName testAcctName2018 -AzureVMName "DSCnode-01" -AzureVMResourceGroup "contosogroup" -AzureVMLocation "East US" -verbose
这篇关于无法注册DSC节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!