使用 Resource Graph Explorer 查找调用已知 Azure 函数的逻辑

问题描述 投票:0回答:1

我需要更改使用某个 azure 函数的逻辑应用程序,因为它已被移动。 如何找到哪些逻辑应用程序使用此 azure 功能?

它应该是Azure Resource Graph Explorer中的查询,但我不熟悉语法。 谢谢

azure-functions azure-logic-apps azure-resource-graph
1个回答
0
投票

使用资源图形资源管理器查找调用已知 Azure 函数的逻辑:-

要查找使用您的函数/函数应用的逻辑应用,您可以使用以下任一查询来满足您的要求。

方法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

方法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

© www.soinside.com 2019 - 2024. All rights reserved.