You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何使用Azure PowerShell获取指定资源组中的Azure Logic Apps列表

获取Azure资源组下所有Logic Apps的PowerShell命令

我平时管理Azure逻辑应用的时候,经常用这两种PowerShell方法来快速列出指定资源组里的所有Logic Apps,分享给你:

方法1:使用专用的Logic App cmdlet

最直接的方式就是用Get-AzLogicApp命令,专门针对逻辑应用设计,参数简单明了:

# 替换为你的目标资源组名称
$resourceGroupName = "X"
Get-AzLogicApp -ResourceGroupName $resourceGroupName

这个命令会返回该资源组下所有逻辑应用的详细信息,包括名称、资源ID、部署位置、创建时间等核心属性。如果只需要提取名称列表,可以加上Select-Object来筛选:

Get-AzLogicApp -ResourceGroupName $resourceGroupName | Select-Object -Property Name

方法2:使用通用资源查询cmdlet

如果需要更灵活的资源过滤(比如同时筛选特定标签或状态),可以用通用的Get-AzResource命令,通过指定资源类型来定位Logic Apps:

$resourceGroupName = "X"
Get-AzResource -ResourceGroupName $resourceGroupName -ResourceType "Microsoft.Logic/workflows"

同样,要是只需要名称列表,也可以通过管道筛选:

Get-AzResource -ResourceGroupName $resourceGroupName -ResourceType "Microsoft.Logic/workflows" | Select-Object -Property Name

小提示:导出到CSV方便查看

如果需要把结果保存下来存档或进一步分析,可以导出到CSV文件,用Excel打开查看更直观:

Get-AzLogicApp -ResourceGroupName $resourceGroupName | Export-Csv -Path "C:\temp\LogicAppsList.csv" -NoTypeInformation

内容的提问来源于stack exchange,提问作者Srujan K.N.

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 06:50:12