【问题标题】:The resource is not defined in ARM template . Microsoft.Datafactory/factories/integrationruntimes/IR-prod not defined该资源未在 ARM 模板中定义。 Microsoft.Datafactory/factories/integrationruntimes/IR-prod 未定义
【发布时间】:2021-12-28 06:12:24
【问题描述】:

我的 LS 依赖于托管类型的 IR。尝试传递具有不同名称的 IR 用于目标。如何获取不属于此模板的 IR 的资源 ID。

【问题讨论】:

  • 嗨 Kusum Shaw,欢迎来到堆栈溢出。我可以提个建议吗?如果您直接在问题中包含 ARM json,而不是链接到屏幕截图,您的问题会更好。请记住,在这个网站上,我们鼓励您Edit您的问题尽可能地改进它:)
  • 你好@Kusum Shaw,模板中没有定义哪个IR?它是您在通过块连接中提供的 IR 参考吗?如果就是这样,那么为什么模板中的同一个 IR 有一个依赖项?你能帮我理解吗
  • 如果回答对您有帮助,请Accept it as an Answer,以便遇到相同问题的其他人可以找到此解决方案并解决他们的问题。

标签: azure azure-pipelines azure-data-factory


【解决方案1】:

根据以下错误:

资源未在 ARM 模板中定义。 Microsoft.Datafactory/factories/integrationruntimes/IR-prod 不 定义

如果您使用不在模板中的 IR,那么 您不应该为同一个 IR 添加依赖块。从代码中您使用的是 connectVia reference name,这是模板中未提供的 IR,然后您再次在 depends on block 中引用相同的 IR,如下所示:

"dependson": ["[concat (variables('factorylId'), '/integrationRuntimes/',parameters ('connectVia_referenceName'))]"]

但由于模板中不存在connectVia_referenceName,因此未定义其抛出错误。

因此,您可以尝试从代码中删除 dependsOn,然后尝试如下操作:

{
"name": "[concat (parameters ('factoryName'), '/example-name')]",
"type": "Microsoft.DataFactory/factories/linkedServices",
"apiversion": "2018-06-01",
"properties": {
"description": "This linked service is used to connect Synapse instance for invoking ILF stored proc",
"annotations": [],
"type": "AzureSqlDW",
"typeProperties": {
"connectionString": {
"type": "SecureString",
"value": "[parameters('connectionString')]"
}
},
"connectVia": {
"referenceName": "[parameters('connectVia_referenceName')]",
"type": "IntegrationRuntimeReference"
}
}
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-19
    • 1970-01-01
    • 2012-04-12
    • 1970-01-01
    • 2016-07-19
    • 1970-01-01
    相关资源
    最近更新 更多