How to list all workflows in a logic app.

Mathew Gibney 20 Reputation points
2024-02-13T23:15:27.4966667+00:00

Hi, I have a standard logic app with multiple workflows. I would like to be able to list all the workflows within a logic app. Following this documentation(https://learn.microsoft.com/en-us/cli/azure/logic/workflow?view=azure-cli-latest#az-logic-workflow-list) when I try to list the workflows I get an empty response: az logic workflow list --subscription <id> --resource-group <rg>

I can list the resource directly with the id using az resource show e.g.: az resource show --ids /subscription/<id>/resourceGroups/<rg>/Microsoft.Web/sites/<logicapp>/workflows/<workflow> However this requires the resource id to be known which isn't ideal. Would you be able to suggest a way to retrieve the list of available workflows if this is feasible. Kind Regards, Matt

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
Windows for business Windows Server User experience PowerShell
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2024-02-14T05:12:58.9433333+00:00

    @Mathew Gibney Thanks for reaching out.

    Looking into the document I don't see any out of box CLI command that can help you, but you can use different commands to list the workflow for your standard logic app. I have tested the below command, and I can get the list of standard logic app workflow details.

    az resource show --ids $(az logicapp show --name yourstandardlogicappname --resource-group yourlogicappresourcename --subscription subscriptionname | jq -r '.id' | sed 's/$//workflows//')

    Reference :

    https://learn.microsoft.com/en-us/cli/azure/logicapp?view=azure-cli-latest#az-logicapp-show

    https://learn.microsoft.com/en-us/cli/azure/resource?view=azure-cli-latest#az-resource-show

    Let me know if you need any assistance.

    Please 'Accept Answer' 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.