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 / Azure Automation conne...
Power Automate
Suggested Answer

Azure Automation connector Get job output appears to be broken

(0) ShareShare
ReportReport
Posted on by 39
When using the Azure Automation connector Get job output in Power Automate the following error message occurs.
 
{
  "error": {
    "code""UnsupportedMediaType",
    "message""The content media type 'text/plain' is not supported. Only 'application/json' is supported."
  }
}
 
When I look at the at Azure docs I can see that the expected output is listed as Media Types: "text/plain" which the error message above confirms is being sent back to Azure Automation Get job output connector in Power Automate.
 
If the output is text/plain why would the Get job output connector be expecting application/json?
Categories:
I have the same question (0)
  • Suggested answer
    Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
    Hello @CU10120534-0
     
    Yes, because of when a runbook writes output using Write-Output, that output is plain text inside Azure Automation and you can see it in the job history.
     

    But when you get the output through the REST API, Azure wraps it in JSON format. That’s why the API only supports application/json, even though the actual output is text.

    Header: 

    Accept: application/json
     
     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------
     
    📩 Need more help? Mention @Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping!
  • CU10120534-0 Profile Picture
    39 on at
    So what is the solution?  How can you use the built in get job output connector in Power Automate to retrieve the Azure Automation job?

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard