SOLVED

Possible to execute scheduled runbook on hybrid worker by default?

%3CLINGO-SUB%20id%3D%22lingo-sub-1291150%22%20slang%3D%22en-US%22%3EPossible%20to%20execute%20runbook%20on%20hybrid%20worker%20by%20default%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1291150%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20was%20wondering%20if%20you%20know%20a%20way%20to%20have%20a%20runbook%20(powershell)%20run%20on%20schedule%20but%20on%20a%20hybrid%20worker%20by%20default%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20manually%20launch%20a%20runbook%20the%20blade%20to%20the%20right%20will%20ask%20me%20whether%20I%20want%20to%20run%20it%20in%20azure%20or%20in%20the%20context%20of%20a%20hybrid%20worker%20group.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can't%20get%20the%20scheduled%20runbook%20to%20execute%20in%20the%20hybrid%20worker%20group.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20ideas%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1291150%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHybrid%20Worker%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESchedules%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1295622%22%20slang%3D%22en-US%22%3ERe%3A%20Possible%20to%20execute%20scheduled%20runbook%20on%20hybrid%20worker%20by%20default%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1295622%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F37813%22%20target%3D%22_blank%22%3E%40Florian%20Hein%3C%2FA%3E!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20have%20to%20link%20a%20new%20schedule%20(or%20re-link%20the%20current%20schedule%20by%20un-linking%20it%20first)%20and%20make%20sure%20you%20choose%20to%20run%20on%20your%20hybrid%20worker%20group%2C%20in%20the%20%22Parameters%20and%20run%20settings%22%20option.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hspinto_0-1586440305325.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183355iB5AC085EB683730D%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22hspinto_0-1586440305325.png%22%20alt%3D%22hspinto_0-1586440305325.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1311904%22%20slang%3D%22en-US%22%3ERe%3A%20Possible%20to%20execute%20scheduled%20runbook%20on%20hybrid%20worker%20by%20default%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1311904%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F453722%22%20target%3D%22_blank%22%3E%40hspinto%3C%2FA%3E%2C%20oh%20yeah%2C%20that%20did%20the%20trick.%20I%20missed%20the%20second%20menu%20point%20%22Parameters%20and%20run%20settings%22%20when%20linking%20the%20schedule.%20Thanks%20so%20much.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Contributor

Hi,

I was wondering if you know a way to have a runbook (powershell) run on schedule but on a hybrid worker by default?

 

When I manually launch a runbook the blade to the right will ask me whether I want to run it in azure or in the context of a hybrid worker group.

 

I can't get the scheduled runbook to execute in the hybrid worker group.

 

Any ideas?

 

Thanks.

2 Replies
best response confirmed by hspinto (Microsoft)
Solution

Hello, @Florian Hein!

 

You have to link a new schedule (or re-link the current schedule by un-linking it first) and make sure you choose to run on your hybrid worker group, in the "Parameters and run settings" option.

 

 

hspinto_0-1586440305325.png

 

@hspinto, oh yeah, that did the trick. I missed the second menu point "Parameters and run settings" when linking the schedule. Thanks so much.