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

后端 未结 9 2051
旧时难觅i
旧时难觅i 2021-01-03 22:31

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

相关标签:
9条回答
  • 2021-01-03 22:54

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

    0 讨论(0)
  • 2021-01-03 22:58

    You can use also az command-line tool

    • To register
    az provider register --namespace Microsoft.DataFactory
    
    • Notes

    Execute both commands before to log in and switch to the desired subscription

    az login
    az account set --subscription <name or id>
    
    0 讨论(0)
  • 2021-01-03 23:01

    To achieve the same thing with the azure cli you just need to set

    azure provider register Microsoft.DataFactory
    

    In order for this to work you need to be executing under the arm config mode

    azure config mode arm
    

    and you need to make sure you have selected the appropriate account/subscription for this to be executed against

    azure account list
    azure account set <SubscriptionNameOrId>
    
    0 讨论(0)
  • 2021-01-03 23:04

    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.

    0 讨论(0)
  • 2021-01-03 23:05

    User PowerShell core and AZ 3.3.0 for me it worked:

    Register-AzResourceProvider -ProviderNamespace Microsoft.Network

    0 讨论(0)
  • 2021-01-03 23:09

    The instructions here worked for me: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-register-provider-errors#solution-3---azure-portal

    From the portal, select All services.

    Select Subscriptions.

    From the list of subscriptions, select the subscription you want to use for registering the resource provider.

    For your subscription, select Resource providers.

    Look at the list of resource providers, and if necessary, select the Register link to register the resource provider of the type you're trying to deploy.

    0 讨论(0)
提交回复
热议问题