gpt4 book ai didi

azure - 如何从 Azure 数据工厂管道连接到网络驱动器

转载 作者:行者123 更新时间:2023-12-03 05:35:34 24 4
gpt4 key购买 nike

我成功地使用文件系统链接服务连接到我的本地计算机。但现在,当我尝试使用类似的方法从网络驱动器访问文件夹时,我无法继续。请问谁能告诉我哪里出错了?

以下是从我的本地计算机连接时的工作版本。

{
"name": "Test_FileSystem",
"type": "Microsoft.DataFactory/factories/linkedservices",
"properties": {
"annotations": [],
"type": "FileServer",
"typeProperties": {
"host": "D:\\AZURE_FS",
"userId": "<<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="750d0d0d351a07125b161a18" rel="noreferrer noopener nofollow">[email protected]</a>>",
"encryptedCredential": "eyJDcmVkZW50aWFsSWQiOiI0ZDYwMWI1Yi02YmI3LTRlN2YtOTBmYi0xNmIzZjI1MzQ3ZjciLC=="
},
"connectVia": {
"referenceName": "IR-FS-DEV",
"type": "IntegrationRuntimeReference"
}
}
}

但是,当我使用类似的方法并尝试连接到网络驱动器时,我的连接失败。

{
"name": "NetworkDrive_LS",
"type": "Microsoft.DataFactory/factories/linkedservices",
"properties": {
"annotations": [],
"type": "FileServer",
"typeProperties": {
"host": "\\\\<host>:<port>\\SD\\AZURE_FS",
"userId": "<userid>",
"encryptedCredential": "eyJDcmVkZW50aWFsSW=="
},
"connectVia": {
"referenceName": "ServerIR-VM",
"type": "IntegrationRuntimeReference"
}
} }

此外,我正在使用自托管 IR。我做错了什么吗?我的错误如下:

文件路径\\<host>:<port>\SD\AZURE_FS不支持。检查配置以确保路径有效。不支持给定路径的格式。

最佳答案

看来我发现了我的错误 -

根据 documentation 中的示例

{
"name": "FileLinkedService",
"properties": {
"type": "FileServer",
"typeProperties": {
"host": "<host>",
"userid": "<domain>\\<user>",
"password": {
"type": "SecureString",
"value": "<password>"
}
},
"connectVia": {
"referenceName": "<name of Integration Runtime>",
"type": "IntegrationRuntimeReference"
}
}
}

我更改为添加用户 ID 的域,并删除了端口号。这样就解决了。

{
"name": "NetworkDrive_LS",
"type": "Microsoft.DataFactory/factories/linkedservices",
"properties": {
"annotations": [],
"type": "FileServer",
"typeProperties": {
"host": "\\\\<host>\\SD\\AZURE_FS",
"userId": "<domain>\\<user>",
"encryptedCredential": "eyJDcmVkZW50aWFsSWQiOiIwY=="
},
"connectVia": {
"referenceName": "ServerIR-VM",
"type": "IntegrationRuntimeReference"
}
}
}



关于azure - 如何从 Azure 数据工厂管道连接到网络驱动器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62931931/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com