【问题标题】:Error linking Azure Blob Storage account to Azure Data Factory将 Azure Blob 存储帐户链接到 Azure 数据工厂时出错
【发布时间】:2019-01-26 22:21:22
【问题描述】:

我创建了一个 Azure 数据工厂,并尝试创建一个新的链接服务以使用 Azure Blob 存储帐户。连接测试成功通过,但每次我尝试链接服务时都会遇到以下错误:

Cannot read property 'Symbol(Symbol.iterator)' of undefined

我正在使用 Azure 数据工厂 V2,我尝试链接的服务是 StorageV2 存储帐户。

不太确定从这里去哪里,任何建议将不胜感激。谢谢!

【问题讨论】:

    标签: azure azure-data-factory-2


    【解决方案1】:

    截至今天下午,我一直遇到同样的问题(上周五解决了)。尝试为 Azure 存储或 SQL 数据库创建链接服务时发生。我尝试了各种浏览器、不同的 Azure 订阅、不同的客户端机器、在不同的区域部署数据工厂和存储帐户,可能还有一些我现在已经忘记的其他事情。

    最终,我放弃了门户网站,并从 PowerShell 创建了链接服务,效果很好。

    $resourceGroupName = "<Resource group name>"
    $dataFactoryName = "<Data factory name>"
    $storageAccountName = "<Azure storage account name>"
    $storageAccountKey = "<Azure storage account key>"
    
    ## JSON definition of the linked service. 
    $storageLinkedServiceDefinition = @"
    {
        "name": "AzureStorageLinkedService",
        "properties": {
            "type": "AzureStorage",
            "typeProperties": {
                "connectionString": {
                    "value": "DefaultEndpointsProtocol=https;AccountName=$storageAccountName;AccountKey=$storageAccountKey",
                    "type": "SecureString"
                }
            }
        }
    }
    "@
    
    ## IMPORTANT: stores the JSON definition in a file that will be used by the Set-AzureRmDataFactoryV2LinkedService command. 
    $storageLinkedServiceDefinition | Out-File c:\AzureStorageLinkedService.json
    
    ## Creates a linked service in the data factory
    Set-AzureRmDataFactoryV2LinkedService -DataFactoryName $dataFactoryName -ResourceGroupName $resourceGroupName -Name "AzureStorageLinkedService" -File c:\AzureStorageLinkedService.json
    

    【讨论】:

    • 在发现 Postgres 不是数据工厂的接收器后,我最终采用了不同的解决方案。谢谢你的详细回答!
    • 为了结束这个循环,我收到了来自 Microsoft 的反馈,说这是 ADF 门户中的一个错误,并且已经部署了一个修复程序。
    【解决方案2】:

    我遇到了类似的问题。我使用 2 个不同的帐户登录。我注销了两个,用一个登录,它工作。希望对您有所帮助。

    【讨论】:

      猜你喜欢
      • 2019-01-15
      • 2020-12-22
      • 2021-10-08
      • 2018-09-20
      • 2016-08-30
      • 2019-10-13
      • 2019-04-20
      • 2020-06-04
      • 2016-10-02
      相关资源
      最近更新 更多