find logic that calls a known Azure function with Resource Graph Explorer

60 views Asked by At

I need to change the logic apps that use a certain azure function because it was moved. How do I find which Logic apps use this azure function?

it should be a query in Azure Resource Graph Explorer but I am not familiar with the syntax. Thanks

1

There are 1 answers

0
Jahnavi On BEST ANSWER

Find logic that calls a known Azure function with Resource Graph Explorer: -

To find the logic app that uses your function/function app, you can use either of the below queries which satisfies your requirement.

Approach-1:

resources
| where type == 'microsoft.logic/workflows'
| where properties.definition.actions contains "Provide your function app/function name"
| project logicapp = name

enter image description here

Approach-2:

resources
| where type == 'microsoft.logic/workflows'
| extend workflowDefinition = parse_json(properties.definition)
| mv-expand trigger = workflowDefinition.triggers
| where tostring(trigger) contains 'Apiconnection' and tostring(trigger) contains "Provide your function app/function name"
| project logicapp = name, id

enter image description here