web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Runbook says it comple...
Power Automate
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?

Categories:
I have the same question (0)
  • Verified answer
    f2 Profile Picture
    105 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 190

Last 30 days Overall leaderboard