Within Azure Data Factory, I am trying to create a linked self-hosted integrated runtime using the .NET Azure Management SDKs.
I have an existing self-hosted integrated runtime in DataFactoryA
. I want to create a linked self-hosted integrated runtime in DataFactoryB
.
_client.IntegrationRuntimes.CreateLinkedIntegrationRuntime(
resourceGroupName: resourceGroup,
factoryName: sharedDataFactoryName,
integrationRuntimeName: sharedIntegrationRuntimeName,
new CreateLinkedIntegrationRuntimeRequest(
name: integrationRuntimeName,
subscriptionId: subscriptionId,
dataFactoryName: dataFactoryName,
dataFactoryLocation: "UK South"
)
);
The above code executes successfully and I can see the requests return the expected payloads. However within the Azure Portal I have the following:
- The existing self-hosted integration runtime type is now listed as "Shared".
- Under the existing self-hosted integration runtime "Shared" properties the linked integration runtime is listed under the target data factory.
However the linked runtime is not listed in the target data factory and is not available when creating linked services.
Additionally if I list the runtimes for the target factory via the SDK, the runtime is not listed.
var list = _client.IntegrationRuntimes.ListByFactory(resourceGroup, dataFactoryName);
Console.WriteLine($"Data factory {dataFactoryName} has the following runtimes:");
foreach (var runtime in list)
{
Console.WriteLine($"{runtime.Name} | {runtime.Etag}");
}
It seems as though the linked integration runtime is only partially created or in an incomplete state such that it is not visible in the portal.
Documentation is currently light on this, how can it be achieved?
question from:
https://stackoverflow.com/questions/65903533/create-linked-self-hosted-integration-runtime-via-net-sdk 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…