如何重命名自托管集成运行时节点

时间:2019-04-26 15:46:34

标签: azure azure-data-factory azure-data-factory-2

我已经在本地开发机器上配置了Self-hosted Integration Runtime Node,以连接到data-factory中的Azure

enter image description here

我现在希望它更改为其他名称,例如“ DEV-01-Machine”,但在Microsoft文档中看不到任何选项。有谁知道如何重命名

1 个答案:

答案 0 :(得分:1)

目前尚无法更新,有两个证据:

1.Azure数据工厂IR Node Update REST API

仅支持以下参数。

enter image description here

您需要提供特定的node_name才能使用此update API。

from azure.common.credentials import ServicePrincipalCredentials
from azure.mgmt.resource import ResourceManagementClient
from azure.mgmt.datafactory import DataFactoryManagementClient
from azure.mgmt.datafactory.models import *

# Azure subscription ID
subscription_id = '***'

# This program creates this resource group. If it's an existing resource group, comment out the code that creates the resource group
rg_name = '***'

# The data factory name. It must be globally unique.
df_name = '***'

# Specify your Active Directory client ID, client secret, and tenant ID
credentials = ServicePrincipalCredentials(client_id='***',
                                          secret='***',
                                          tenant='***')
resource_client = ResourceManagementClient(credentials, subscription_id)
adf_client = DataFactoryManagementClient(credentials, subscription_id)

resource_client.resource_groups.get(rg_name)

# Create a data factory
df_resource = Factory(location='eastus')
df = adf_client.factories.get(rg_name, df_name, df_resource)
print(df)

integration_runtime_name = "***";
node_name = "***";
irn = adf_client.integration_runtime_nodes.get(rg_name, df_name, integration_runtime_name, node_name)
print(irn)

2.ADF门户网站。

没有任何更新名称的选项。

enter image description here

顺便说一句,根据我的观察,节点名称由本地PC名称自动标识。

enter image description here

您可以尝试更新PC名称以管理节点的名称规则。