无法将混合Runbook Worker组作为-RunAs参数运行 [英] Unable to run Hybrid Runbook Worker group as -RunAs Parameter

查看:83
本文介绍了无法将混合Runbook Worker组作为-RunAs参数运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用以下命令启动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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆