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"