Summer
Summer

Reputation: 433

Azure Powershell Get-AzDataFactory returns an error: The resource type could not be found in the namespace 'Microsoft.DataFactory'

I was using a powershell console inside Azure to run this commandlet:

Get-AzDataFactory -ResourceGroupName "rg-name"

I get this error message below:

Get-AzDataFactory: HTTP Status Code: NotFound
Error Code: InvalidResourceType
Error Message: The resource type could not be found in 
the namespace 'Microsoft.DataFactory' for api version '2015-10-01'.
Request Id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Timestamp (Utc):05/11/2021 17:22:11

What does this message mean and how do I fix the problem?

Upvotes: 3

Views: 1407

Answers (1)

Steve Johnson
Steve Johnson

Reputation: 8660

It depends on your version of Azure Data Factory. If your Azure Data Factory is v1, you should use this command Get-AzDataFactory -ResourceGroupName "rg-name". If it's v2, you need to use Get-AZDataFactoryV2 -ResourceGroupName "rg-name".

Upvotes: 8

Related Questions