The subscription is not registered to use namespace 'Microsoft.DataFactory error

user964787 picture user964787 · Mar 24, 2016 · Viewed 23.9k times · Source

Going through this tutorial "Create a pipeline with Copy Activity using Visual Studio" and recieving this error when i hit publish.

Error not mentioned anywhere on net and very little help/knowledge on azure generally on web.

Answer

Stopped Contributing picture Stopped Contributing · Mar 24, 2016

In Azure, for each functionality there's a resource provider (Microsoft.DataFactory for example).

By default, your Azure Subscription is not registered with all resource providers and because your Subscription is not registered with Microsoft.DataFactory resource provider, you're getting this error.

What you have to do is manually register your subscription with a resource provider. If you're using Azure PowerShell, you can use Register-AzureRmResourceProvider Cmdlet to achieve the same. You would need to use syntax like below:

Register-AzureRmResourceProvider -ProviderNamespace Microsoft.DataFactory

Once your Subscription is registered with this resource provider, this error will go away.