无法将混合Runbook Worker组作为-RunAs参数运行 [英] Unable to run Hybrid Runbook Worker group as -RunAs Parameter
问题描述
我无法使用以下命令启动Hybrid Runbook Worker.
I am unable to start Hybrid Runbook Worker using command below.
Start-AzureRmAutomationRunbook –AutomationAccountName"MyAutomationAccount"; –名称"Test-Runbook"; -RunOn"MyHybridGroup" -ResourceGrou"ResourceGroupName"
Start-AzureRmAutomationRunbook –AutomationAccountName "MyAutomationAccount" –Name "Test-Runbook" -RunOn "MyHybridGroup" -ResourceGrou "ResourceGroupName"
以下是我注意到的内容:
Mentioned below is what I noticed:
-Get-azurerm订阅返回空白
- Get-azurermsubscriptionreturn blank
-Start-AzureRMAutomationRunbook->抛出,缺少ResourceGroup,我已经验证了正确指定了资源组.
- Start-AzureRMAutomationRunbook -> Throws, Missing ResourceGroup , i have validated the resource group is correctly specified.
-Get-azurermautomationaccount返回空白. ->找不到自动化帐户.
- Get-azurermautomationaccount return blank. -> No automation account found.
我尝试创建新的自动化帐户->问题再现.
I tried creating new automation account -> issue reproduces.
请帮助
推荐答案
注意: 在本地环境中,您没有资源组.
您可以使用以下命令来启动名为Test-Runbook的运行本使用Windows PowerShell的名为MyHybridGroup的混合Runbook工作组.
Start-AzureRmAutomationRunbook –AutomationAccountName"MyAutomationAccount" –名称"Test-Runbook"; -RunOn"MyHybridGroup"
Start-AzureRmAutomationRunbook –AutomationAccountName "MyAutomationAccount" –Name "Test-Runbook" -RunOn "MyHybridGroup"
For more details, refer "Running runbooks on a Hybrid Runbook Worker" and "Azure Automation – Hybrid Runbook Worker".
--------------- -------------------------------------------------- ------------------------------
如果此答案有帮助,请单击标记为答案"或向上" -投票".要提供有关您的论坛体验的其他反馈,请单击 span /p>
If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here
这篇关于无法将混合Runbook Worker组作为-RunAs参数运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!