Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Azure automation parameter error

(0) ShareShare
ReportReport
Posted on by 6

the array below is my input parameter for Azure Automation powershell runbook. this is gotten from Power automate

 
[
  "admin@XXXXX.onmicrosoft.com",
  "admin@XXXXX.OnMicrosoft.com",
  "admin@XXXX.onmicrosoft.com",
  "admin@XXXX.onmicrosoft.com"
]
 
Here is my azure automation runbook code
param
    (
        [Parameter(Mandatory=$true)][ValidateNotNullOrEmpty()] 
            [String[]] $Users
    )
Users | ConvertFrom-Json
 
When I run my power automate i get the error below
Error
Action 'Create_job' failed
Error Details
Input value wasn't a JSON object.
 
 
I do not know why AZ Automation is not accepting the output from Power automate as a valid parameter.

@TexasBI , @CFernandes , @efialttes

 
 
  • JohnAageAnderse Profile Picture
    1,986 on at
    Re: Azure automation parameter error

    Hello @BeeBeeBee 

    Did you find a solution to your issue or is it still relevant?

    To me it looks like your issue is in the ConvertFrom-Json part. I see that the parameter data is an array, not json. Or do you convert it to json before you call the Azure runbook?

    Let us know how it went

    Kind regards, John

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow