logic apps - how to export workflow definition by powershell

芹沢 基樹 111 Reputation points
2021-02-15T07:43:34.347+00:00

Get-AzLogicApp returns workflow objects of Logic Apps. but how can I get actual workflow definition (in JSON) from a workflow object?

Thanks

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,542 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 63,506 Reputation points
    2021-02-15T14:11:49.837+00:00

    Hi @芹沢 基樹

    You can use the below command to get the Definition:

    (Get-AzLogicApp -ResourceGroupName "yourresourcegroupname" -Name "logicappname").Definition.ToString()

    Get-AzLogicApp command returns the Workflow output which is the JSON object. Let me know if you need any assistance.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


0 additional answers

Sort by: Most helpful