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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Runbook says it comple...
Power Automate
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard