cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MS_Sol
Microsoft
Microsoft

Using Output from Azure runbook get job output flow

I am trying to see how to pass information from an Azure automation runbook to flow.  The runbook has an object variable that has many properties to it.  I have tried passing this to a Flow variable of object type.  However, I dont see how you access properties of the object. 

 

For example, $object.subscriptionName in the output is an azure sub name.  How do I access that part of the object in flow?

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @MS_Sol,

 

Could you share a screenshot of your Flow configuration? 

Could you share the specific content of the object variable output?

I am wondering what type of format it is presented in.

Flow provides action-Parse JSON that can parse JSON objects.

Just need a paste a sample JSON payload to parse json and get the property value.

 

Image reference:

32.PNG

33.PNG

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-bacao-msft
Community Support
Community Support

Hi @MS_Sol,

 

Could you share a screenshot of your Flow configuration? 

Could you share the specific content of the object variable output?

I am wondering what type of format it is presented in.

Flow provides action-Parse JSON that can parse JSON objects.

Just need a paste a sample JSON payload to parse json and get the property value.

 

Image reference:

32.PNG

33.PNG

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

I am not choosing the format, its a Flow action, so doesnt it determine what it formats the object as?  I would imagine if it uses the object type that the runbook uses, it would be a PSobject.  Sounds like maybe you are saying I need to change the format to JSON in the runbook.  

 

What about the object variable type you can set in initialize and set variable in Flow?  How would you access the properties of that variable?

 

Here is my flow:

 

flowscreen.jpg

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,631)