DiegoM
DiegoM

Reputation: 83

List ADF Self-hosted Integration Runtimes

I have an ADF which has a number of Self Hosted Integration Runtimes. I'm trying to get a listing of all the self hosted IRs but I only want to return the IRs that are Original to the ADF I'm working with. I don't want to return the IRs that are shared from another ADF.

I have the following code:

Get-AzDataFactoryV2IntegrationRuntime -ResourceGroupName RG1QA -DatafactoryName ADFQA | where type -eq "SelfHosted" | Select Name

That command brings back all the SHIRs, including the ones that are shared from the PRD ADF. We only need the IRs that are Original to ADFQA. Is this even possible?

Upvotes: 0

Views: 509

Answers (1)

Abhishek Khandave
Abhishek Khandave

Reputation: 3228

Cannot find exact command to get only Original IR’s.

I have tried below workaround. I have 4 IR’s. I added Description to them as “Shared” and “Not Shared”.

enter image description here

enter image description here

Finally run Get-AzDataFactoryV2IntegrationRuntime -ResourceGroupName ******** -DataFactoryName ********* | where Description -eq "Not Shared"| Select name command to get names of all IR’s that are not Shared.

enter image description here

Upvotes: 1

Related Questions