gpt4 book ai didi

Azure 数据工厂 ARM 模板

转载 作者:行者123 更新时间:2023-12-03 00:09:02 25 4
gpt4 key购买 nike

我正在创建一个 ARM 模板来部署数据工厂。除了自托管集成运行时之外,一切工作正常。我有一个本地 SQL Server 和另一个本地 Oracle DB。两者都使用自托管集成运行时进行连接。我在部署 ARM 模板时收到以下错误。

2018-08-13T14:11:34.9569812Z ##[error]At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.
2018-08-13T14:11:34.9582896Z ##[error]Details:
2018-08-13T14:11:34.9587327Z ##[error]BadRequest: {
"code": "BadRequest",
"message": "Failed to encrypt sub-resource payload {\r\n \"Id\": \"/subscriptions/bf2c5c07-2536-497d-9b87-7f0a0fa5a2b3/resourceGroups/ResourceGroup_Name/providers/Microsoft.DataFactory/factories/DataFactoryName/linkedservices/Oracle_Linked_ServiceName\",\r\n \"Name\": \"Oracle_Linked_ServiceName\",\r\n \"Properties\": {\r\n \"type\": \"Oracle\",\r\n \"typeProperties\": {\r\n \"type\": \"********************\",\r\n \"connectionString\": \"********************\"\r\n },\r\n \"connectVia\": {\r\n \"referenceName\": \"IntegrationRuntime-Name\",\r\n \"type\": \"IntegrationRuntimeReference\"\r\n }\r\n }\r\n} and error is: Failed to encrypted linked service credentials on self-hosted IR 'IntegrationRuntime-Name', reason is: NotFound, error message is: No online instance..",
"target": "/subscriptions/bf2c5c07-2536-497d-9b87-7f0a0fa5a2b3/resourceGroups/ResourceGroup_Name/providers/Microsoft.DataFactory/factories/DataFactoryName/linkedservices/Oracle_Linked_ServiceName",
"details": null,
"error": null
} undefined
2018-08-13T14:11:34.9599952Z ##[error]BadRequest: {
"code": "BadRequest",
"message": "Failed to encrypt sub-resource payload {\r\n \"Id\": \"/subscriptions/bf2c5c07-2536-497d-9b87-7f0a0fa5a2b3/resourceGroups/ResourceGroup_Name/providers/Microsoft.DataFactory/factories/DataFactoryName/linkedservices/Source_OnPremSQL\",\r\n \"Name\": \"Source_OnPremSQL\",\r\n \"Properties\": {\r\n \"type\": \"SqlServer\",\r\n \"typeProperties\": {\r\n \"connectionString\": \"********************\",\r\n \"username\": \"********************\",\r\n \"password\": \"********************\"\r\n },\r\n \"connectVia\": {\r\n \"referenceName\": \"IntegrationRuntime-Name\",\r\n \"type\": \"IntegrationRuntimeReference\"\r\n }\r\n }\r\n} and error is: Failed to encrypted linked service credentials on self-hosted IR 'IntegrationRuntime-Name', reason is: NotFound, error message is: No online instance..",
"target": "/subscriptions/bf2c5c07-2536-497d-9b87-7f0a0fa5a2b3/resourceGroups/ResourceGroup_Name/providers/Microsoft.DataFactory/factories/DataFactoryName/linkedservices/Source_OnPremSQL",
"details": null,
"error": null
} undefined
2018-08-13T14:11:34.9602482Z ##[error]Task failed while creating or updating the template deployment.
2018-08-13T14:11:34.9611870Z ##[section]Finishing: DataFactoryDeployment

最佳答案

如果您使用连接字符串和密码来建立连接,则 ARM 模板将包含它们,因此您需要根据每个连接器的预期再次填充连接字符串。

我遇到了同样的问题,并通过用 this 填充 oracle 连接字符串来修复。和 Azure SQL 连接器 this (使用JSON值键作为模板)

要永久解决此问题,我建议您使用 Azure Key Vault来存储您的凭据,因此当需要新的导入时,ARM 模板将携带 key ,但不携带其值。

PS:您需要授权数据工厂才能访问存储的凭据。

关于Azure 数据工厂 ARM 模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51847265/

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