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

How to Rename Self-hosted Integration Run Time Node

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

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

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

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

只支持以下参数

您需要提供具体的 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传送门。

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

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

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