how to get list of all azure adf shirs across multiple subscriptions through powershell

asked 2022-06-20T12:11:40.217+00:00
VaishnaviP 21 Reputation points

how to get list of all azure adf shirs across multiple subscriptions through powershell

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
6,254 questions
{count} votes

1 answer

Sort by: Most helpful
  1. answered 2022-06-22T05:47:46.737+00:00
    PRADEEPCHEEKATLA-MSFT 53,006 Reputation points Microsoft Employee

    Hello @VaishnaviP ,

    Thanks for the question and using MS Q&A platform.

    Here is the script which get list of all Azure ADF SHIR across multiple subscriptions through PowerShell:

    foreach($subscription in $subscriptions){  
    Select-AzSubscription -SubscriptionId $subscription.Id | Out-Null  
    $tResources = Get-AzResource -ResourceType Microsoft.DataFactory/factories | Select-Object Name, ResourceGroupName  
    $Resources | Foreach-Object {  
    Get-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $_.ResourceGroupName -DataFactoryName $_.Name | Where-Object Type -eq "SelfHosted" | Format-Table  
    }  
    }  
    

    The above script is successfully working and able to get list of all Azure ADF SHIR across multiple subscriptions through PowerShell

    213618-image.png

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators