Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

Creating datafactory-Name:VSTutorialFactory,Tags:,Subscription:Pay-As-You-Go,ResourceGroup:MyAppGroup,Location:North Europe,    24/03/2016 11:30:34- Error creating data factory:    Microsoft.WindowsAzure.CloudException: MissingSubscriptionRegistration:    The subscription is not registered to use namespace 'Microsoft.DataFactory'.

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

like image 454
user964787 Avatar asked Mar 24 '16 12:03

user964787


People also ask

Is not registered to use namespace?

Those of you who have been playing around with Microsoft Azure might be familiar with the error “The subscription is not registered to use namespace” when trying to deploy a new service. The error basically means that the service you are trying to use is not (yet) registered in your Azure subscription.

What is resource provider in Azure?

Azure subscriptions come with a default set of Resource Providers to support creating various resources. For example, if you want to create a virtual machine, the Microsoft. Compute Resource Provider needs to be registered to the subscription to successfully create a virtual machine.


2 Answers

You can also register resource providers under your subscription in the portal

enter image description here

like image 115
Marcus Höglund Avatar answered Sep 17 '22 07:09

Marcus Höglund


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.

like image 34
Gaurav Mantri Avatar answered Sep 18 '22 07:09

Gaurav Mantri