Reputation: 8741
I have two data factories. The "shared" data factory has an integration runtime that I'd like to share with the "client" data factory via az cli.
I am able to do this via the portal by navigating through the "shared" data factory \ Integration Runtimes \ Edit \ Sharing tab and selecting "Grant permission to another Data Factory or user-assigned managed identity".
My problem comes when trying to achieve the same via az cli. I have tried the following sequence of two az cli commands:
az datafactory integration-runtime self-hosted create --factory-name adf-rb-shared `
--integration-runtime-name shir01 `
--resource-group rg-adf-shared
az datafactory integration-runtime linked-integration-runtime create `
--factory-name adf-rb-shared `
--integration-runtime-name shir01 `
--resource-group rg-adf-shared `
--data-factory-name adf-rb-client-001
The first command seems to work and does create a new integration runtime in the "shared" data factory.
However, the second command gives the following error:
(UnsupportedVersionForSharableIR) None Code: UnsupportedVersionForSharableIR Message: None Target: /subscriptions/sub-number-here/resourceGroups/rg-adf-shared/providers/Microsoft.DataFactory/factories/adf-rb-shared/integrationruntimes/shir01
Anyone see where I went wrong?
Upvotes: 0
Views: 1028
Reputation: 8382
Steps to create Shared Integration Runtime.
As you created a self-hosted integration runtime after that Get the integration runtime authentication key and register a node.
To Retrieve the authentication keys for an integration runtime.
az datafactory integration-runtime list-auth-key --factory-name
--integration-runtime-name
--resource-group
When you register the integration runtime node, you utilise this key.
The self-hosted integration runtime installation and registration.
The data factory needs access to the self-hosted integration runtime that you registered and created provide it permission. Add contributor role
Run the following command to create a linked self-hosted integration runtime:
az datafactory integration-runtime linked-integration-runtime create --factory-name
--integration-runtime-name
--resource-group
[--data-factory-name]
[--location]
[--name]
[--subscription-id]
Upvotes: -1