如何在 arm 模板中创建数据工厂集成运行时
how to create data factory's integrated runtime in arm template
我正在尝试使用 ARM 模板部署数据工厂。使用导出的模板很容易创建部署管道。
但是,由于数据工厂需要访问内部部署的数据库服务器,因此我需要一个集成的 运行时间。问题是如何在 arm 模板中包含 运行 时间?
模板看起来像这样,我们可以看到它试图包含 运行时间:
{
"name": "[concat(parameters('factoryName'), '/OnPremisesSqlServer')]",
"type": "Microsoft.DataFactory/factories/linkedServices",
"apiVersion": "2018-06-01",
"properties":
{
"annotations": [],
"type": "SqlServer",
"typeProperties": {
"connectionString": "[parameters('OnPremisesSqlServer_connectionString')]"
},
"connectVia": {
"referenceName": "OnPremisesSqlServer",
"type": "IntegrationRuntimeReference"
}
},
"dependsOn": [
"[concat(variables('factoryId'), '/integrationRuntimes/OnPremisesSqlServer')]"
]
},
{
"name": "[concat(parameters('factoryName'), '/OnPremisesSqlServer')]",
"type": "Microsoft.DataFactory/factories/integrationRuntimes",
"apiVersion": "2018-06-01",
"properties": {
"type": "SelfHosted",
"typeProperties": {}
},
"dependsOn": []
}
运行 这个模板给我这个错误:
\"connectVia\": {\r\n \"referenceName\": \"OnPremisesSqlServer\",\r\n \"type\": \"IntegrationRuntimeReference\"\r\n }\r\n }\r\n} and error is: Failed to encrypted linked service credentials on self-hosted IR 'OnPremisesSqlServer', reason is: NotFound, error message is: No online instance..
问题是我需要在集成 运行 时间的 UI 中输入一些密钥,以便可以在 azure 中注册。但我只能从我的数据工厂实例的 UI 中获取该密钥。所以上面的arm模板部署总会失败至少一次。我想知道是否有办法独立创建 运行 时间?
The problem is that I will need to type in some key in the integrated
runtime's UI, so it can be registered in azure. But I can only get
that key from my data factory instance's UI. So above arm template
deployment will always fail at least once. I am wondering if there is
a way to create the run time independently?
看来您已经知道如何创建Self-Hosted IR in the ADF ARM。
{
"name": "[concat(parameters('dataFactoryName'), '/integrationRuntime1')]",
"type": "Microsoft.DataFactory/factories/integrationRuntimes",
"apiVersion": "2018-06-01",
"properties": {
"additionalProperties": {},
"description": "jaygongIR1",
"type": "SelfHosted"
}
}
结果:
只有你关心的是 Windows IR Tool 需要配置 AUTHENTICATION KEY
才能访问 ADF 自托管 IR node.So,一旦它应该是 Unavailable
状态created.This 我认为流程是有意义的,应该首先创建身份验证密钥,然后您可以使用它来配置 On-Premise Tool.You 不能一步实现所有事情,因为这些行为是在Azure 和内部部署方面。
基于Self-Hosted IR Tool document,注册步骤不能用Powershell代码实现。因此,流程中不能处理的所有步骤都是创建 IR 和获取 Auth 密钥,而不是在工具中注册。
我正在尝试使用 ARM 模板部署数据工厂。使用导出的模板很容易创建部署管道。
但是,由于数据工厂需要访问内部部署的数据库服务器,因此我需要一个集成的 运行时间。问题是如何在 arm 模板中包含 运行 时间?
模板看起来像这样,我们可以看到它试图包含 运行时间:
{
"name": "[concat(parameters('factoryName'), '/OnPremisesSqlServer')]",
"type": "Microsoft.DataFactory/factories/linkedServices",
"apiVersion": "2018-06-01",
"properties":
{
"annotations": [],
"type": "SqlServer",
"typeProperties": {
"connectionString": "[parameters('OnPremisesSqlServer_connectionString')]"
},
"connectVia": {
"referenceName": "OnPremisesSqlServer",
"type": "IntegrationRuntimeReference"
}
},
"dependsOn": [
"[concat(variables('factoryId'), '/integrationRuntimes/OnPremisesSqlServer')]"
]
},
{
"name": "[concat(parameters('factoryName'), '/OnPremisesSqlServer')]",
"type": "Microsoft.DataFactory/factories/integrationRuntimes",
"apiVersion": "2018-06-01",
"properties": {
"type": "SelfHosted",
"typeProperties": {}
},
"dependsOn": []
}
运行 这个模板给我这个错误:
\"connectVia\": {\r\n \"referenceName\": \"OnPremisesSqlServer\",\r\n \"type\": \"IntegrationRuntimeReference\"\r\n }\r\n }\r\n} and error is: Failed to encrypted linked service credentials on self-hosted IR 'OnPremisesSqlServer', reason is: NotFound, error message is: No online instance..
问题是我需要在集成 运行 时间的 UI 中输入一些密钥,以便可以在 azure 中注册。但我只能从我的数据工厂实例的 UI 中获取该密钥。所以上面的arm模板部署总会失败至少一次。我想知道是否有办法独立创建 运行 时间?
The problem is that I will need to type in some key in the integrated runtime's UI, so it can be registered in azure. But I can only get that key from my data factory instance's UI. So above arm template deployment will always fail at least once. I am wondering if there is a way to create the run time independently?
看来您已经知道如何创建Self-Hosted IR in the ADF ARM。
{
"name": "[concat(parameters('dataFactoryName'), '/integrationRuntime1')]",
"type": "Microsoft.DataFactory/factories/integrationRuntimes",
"apiVersion": "2018-06-01",
"properties": {
"additionalProperties": {},
"description": "jaygongIR1",
"type": "SelfHosted"
}
}
结果:
只有你关心的是 Windows IR Tool 需要配置 AUTHENTICATION KEY
才能访问 ADF 自托管 IR node.So,一旦它应该是 Unavailable
状态created.This 我认为流程是有意义的,应该首先创建身份验证密钥,然后您可以使用它来配置 On-Premise Tool.You 不能一步实现所有事情,因为这些行为是在Azure 和内部部署方面。
基于Self-Hosted IR Tool document,注册步骤不能用Powershell代码实现。因此,流程中不能处理的所有步骤都是创建 IR 和获取 Auth 密钥,而不是在工具中注册。