Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Runbook says it completed successfully but doesnt do the task?

(0) ShareShare
ReportReport
Posted on by 105

Hi, I've got a strange one and not sure how to even troubleshoot it. I've setup a runbook to run on a hybrid worker, if I run it through the automation account on azure it completes successfully and I can verify its completed the task within my onprem AD.

 

Since its part of a larger project I added it to my LogicApp and it says its completed successfully but when checking onprem AD I can see it hasnt actually done the task. I then thought I would create a basic Power Automate flow to only run this runbook and again it says its completed successfully but when looking at AD I can see it hasn't.

 

I found a post which I guess had a similar issue and they mentioned creating a "PowerShell Workflow" runbook instead of a regular "Powershell" runbook, which I did but it still doesn't actual do the task within the script (but does say it completed successfully?

 

Any ideas or suggestions?

  • Verified answer
    f2 Profile Picture
    105 on at
    Re: Runbook says it completed successfully but doesnt do the task?

    Looks like I figured out what I was doing wrong. So when manually running a runbook via the Automation Account on the Azure interface you are given the option to select either "run settings > run on > Azure or Hybrid Worker". I've obviously been selecting Hybrid Worker in my case and getting the result I wanted.

    However when I've been using Power Automate or Logic Apps to run my runbook, I'm guessing it takes the first option as I cant see a way to pick "Run on > Hybrid Worker" any whwere. The way I've got it to work is create a "Webhook" for the Runbook (Runbook > Resources (left hand pane) and select "Webhook), when setting up the Webhook it gives you the option for "run on" then simply use an HTTP/POST within your PowerAutomate or LogicApp and thats how I got it working on premise via PowerAutomate or LogicApp.

     

    If anybody knows of a better way please post up as ihavenoideawhatimdoing.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492