在Site Recovery计划中的混合工作器上运行的自动化Runbook [英] Automation runbook to run on hybrid worker in Site Recovery plan

查看:73
本文介绍了在Site Recovery计划中的混合工作器上运行的自动化Runbook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Automation Runbook制定Site Recovery计划.其中一本运行手册需要在上运行杂种工人.在站点恢复计划"中,我只能选择Runbook,但不能指定运行位置.默认情况下,脚本正在运行 在Azure上,我似乎找不到一种在Hybrid worker上运行的方法.

在我看来,唯一的选择是创建另一个Runbook,然后从那里调用实际的Runbook(使用Start-AzureAutomationrunbook cmdlet并将HybridWorker传递为参数-runon的值).但是,收集脚本的输出似乎有点 涉及-https://azure.microsoft.com/en-us/blog/azure-automation-runbook-input-output-and-nested-runbooks/

是否有一种简单的方法可以直接从恢复计划中使用Hybrid worker调用运行手册?

-Ajay


解决方案

在Azure自动化和在Hybrid Runbook Worker上运行的程序.您最可能使用的Runbook 尽管差别很大,因为针对混合Runbook Worker的Runbook通常管理本地计算机本身上的资源或针对部署它的本地环境中的资源,而Azure Automation中的Runbook通常管理资源 在Azure云中.

您可以使用Azure Automation的Hybrid Runbook Worker功能直接运行Runbook在承载角色并针对环境中的资源的计算机上 管理那些本地资源. Runbook在Azure自动化中存储和管理,然后传递到一台或多台指定的计算机.

有关详细信息,请参阅"

我建议您投票赞成另一位Azure客户提交的想法.

您在这些论坛中分享的所有反馈都将受到监控和审查由Azure Stack团队提供.

--------------- -------------------------------------------------- ------------------------------

如果此答案有帮助,请单击标记为答案"或向上" -投票".要提供有关您的论坛体验的其他反馈,请单击 在这里 >

Hi,

I am working on Site Recovery plan using Automation runbooks.  One of the runbooks needs to be run on  hybrid worker.  In Site recovery plan, i can only select runbook, but cant specify where to run.  By default the scripts are running on Azure and I cant seem to find a way to run on Hybrid worker.  

Only option seems to me is to create another runbook and from there call the actual runbook (using Start-AzureAutomationrunbook cmdlet and pass HybridWorker as value for parameter -runon ).   However, gathering the output of the script seems bit involved - https://azure.microsoft.com/en-us/blog/azure-automation-runbook-input-output-and-nested-runbooks/

Is there a simple way to invoke runbooks using hybrid worker directly from recovery plan?

-Ajay


解决方案

Currently, Recovery plans support only runbooks in Azure Automation typically manage resources in the Azure cloud.

There is no difference in the structure of runbooks that run in Azure Automation and those that run on a Hybrid Runbook Worker. Runbooks that you use with each most likely differ significantly though since runbooks targeting a Hybrid Runbook Worker typically manage resources on the local computer itself or against resources in the local environment where it is deployed, while runbooks in Azure Automation typically manage resources in the Azure cloud.

You can use the Hybrid Runbook Worker feature of Azure Automation to run runbooks directly on the computer that's hosting the role and against resources in the environment to manage those local resources. Runbooks are stored and managed in Azure Automation and then delivered to one or more designated computers.

For more details, refer "Automate resources in your datacenter or cloud by using Hybrid Runbook Worker".

I would suggest you to vote up an idea submitted by another Azure customer.

https://feedback.azure.com/forums/256299-site-recovery/suggestions/9988665-add-full-azure-automation-support

All of the feedback that you share in these forums will be monitored and reviewed by the Azure Stack team.

-----------------------------------------------------------------------------------------------

If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here


这篇关于在Site Recovery计划中的混合工作器上运行的自动化Runbook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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