Cannot find Azure Data Factory

Viewed 229

I was executing this command:

$obj = Get-AzDataFactory -ResourceGroupName $rgName -Name $adfName

I get this error but the ADF exists.

HTTP Status Code: NotFound Error Code: ResourceNotFound 
Error Message: The Resource 'Microsoft.DataFactory/dataFactories/*******' 
under resource group 'DEV*****RG' was not found.

When this command runs, the ADF is listed!

Get-AzResource -ResourceGroupName "DEV*****RG"
1 Answers

'Get-AzDataFactoryV2' is the correct command

Related