I have created Azure Data Factory and then added datasets, triggers, pipelines and linked services into it. I want to know the count of datasets, triggers, pipelines and linked services using PowerShell or any other alternative way.
Asked
Active
Viewed 318 times
0
-
Does the DataFactory UI not show that?. Assuming just a count as you mentioned an alternative way. – Mr.Batra Sep 22 '21 at 07:39
1 Answers
2
Count datasets
PS /home/abhishek> $datasets = Get-AzDataFactoryV2Dataset -ResourceGroupName "rg_name" -DataFactoryName "df_name"
PS /home/abhishek> $datasets.count
3
Count triggers
PS /home/abhishek> $triggers = Get-AzDataFactoryV2Trigger -ResourceGroupName "rg_name" -DataFactoryName "df_name"
PS /home/abhishek> $triggers.count
0
Count pipelines
PS /home/abhishek> $pipelines = Get-AzDataFactoryV2Pipeline -ResourceGroupName "rg_name" -DataFactoryName "df_name"
PS /home/abhishek> $pipelines.count
3
Count linked services
PS /home/abhishek> $linkedservice = Get-AzDataFactoryV2LinkedService -ResourceGroupName "rg_name" -DataFactoryName "df_name"
PS /home/abhishek> $linkedservice.count
3

Abhishek K
- 3,047
- 1
- 6
- 19