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

Azure Logic App Standard:部分连接未授权问题求助

解决Azure Logic App Standard(ASE v3)中FileSystem连接未授权问题

问题场景

在ASE v3中创建并托管Azure Logic App Standard工作流,使用内置FileSystem连接器从本地文件共享收集数据,创建工作流后编辑保存时出现提示:

部分连接尚未授权。如果您刚从模板创建工作流,请在保存前向工作流添加已授权的连接

工作流代码如下:

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {
            "Copy_file": {
                "inputs": {
                    "parameters": {
                        "destination": "destination_path_here",
                        "source": "@triggerOutputs()?['body']?['path']"
                    },
                    "serviceProviderConfiguration": {
                        "connectionName": "FileSystem",
                        "operationId": "copyFile",
                        "serviceProviderId": "/serviceProviders/FileSystem"
                    }
                },
                "runAfter": {},
                "type": "ServiceProvider"
            }
        },
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "triggers": {
            "When_a_file_is_added": {
                "conditions": [
                    {
                        "expression": "@not(equals(triggerBody().Size,0))"
                    }
                ],
                "inputs": {
                    "parameters": {
                        "folderPath": "source_path_here"
                    },
                    "serviceProviderConfiguration": {
                        "connectionName": "FileSystem",
                        "operationId": "whenFilesAreAdded",
                        "serviceProviderId": "/serviceProviders/FileSystem"
                    }
                },
                "kind": "Polling",
                "recurrence": {
                    "frequency": "Second",
                    "interval": 15
                },
                "splitOn": "@triggerOutputs()?['body']",
                "type": "ServiceProvider"
            }
        }
    },
    "kind": "Stateful"
}

解决步骤

1. 完成FileSystem连接的授权配置

  • 进入你的Logic App Standard资源,在左侧菜单开发工具下选择连接
  • 找到名称为FileSystem的连接(与工作流代码中connectionName一致),点击进入配置页面
  • 填写本地文件共享的完整路径(格式如\\server-name\share-folder),并提供有权限访问该共享的账户凭据(用户名、密码,若为域账户需填写域\用户名格式)
  • 保存配置并测试连接,确保能成功访问目标文件共享

2. 核对工作流与连接的关联

  • 确认工作流代码中的connectionName值(示例中为FileSystem)与实际授权完成的连接名称完全匹配,注意大小写敏感
  • 如果是从模板导入的工作流,需确保连接不是仅占位符,而是已关联到实际授权的连接实例

3. ASE环境下的网络与权限检查

  • 检查ASE的网络安全组(NSG)规则,允许Logic App运行时访问目标文件共享的SMB端口(默认TCP 445)
  • 若文件共享在本地网络,需确保ASE与本地网络已通过VPN或ExpressRoute连通
  • 验证文件共享的NTFS权限,确保用于授权的账户拥有读取源文件夹、写入目标文件夹的权限

内容的提问来源于stack exchange,提问作者Rob Bowman

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.10 02:31:02