订阅未注册使用命名空间'Microsoft.DataFactory错误

时间:2016-03-24 12:23:49

标签: visual-studio azure azure-data-factory

浏览this tutorial“使用Visual Studio创建包含复制活动的管道”  当我点击发布时收到此错误。

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'.

网上任何地方都没有提到错误,而且一般在网上对天蓝色的帮助/知识很少。

11 个答案:

答案 0 :(得分:18)

在Azure中,每个功能都有一个资源提供程序(例如Microsoft.DataFactory)。

默认情况下,您的Azure订阅未向所有资源提供商注册,并且由于您的订阅未向Microsoft.DataFactory资源提供商注册,因此您收到此错误。

您需要做的是手动向资源提供商注册您的订阅。如果您使用的是Azure PowerShell,则可以使用Register-AzureRmResourceProvider Cmdlet来实现相同的功能。您需要使用如下语法:

Register-AzureRmResourceProvider -ProviderNamespace Microsoft.DataFactory

一旦您的订阅注册了此资源提供程序,此错误就会消失。

答案 1 :(得分:7)

要使用azure cli实现相同的功能,您只需设置

即可
azure provider register Microsoft.DataFactory

为了使其正常工作,您需要在arm配置模式下执行

azure config mode arm

并且您需要确保为此选择了相应的帐户/订阅

azure account list
azure account set <SubscriptionNameOrId>

答案 2 :(得分:5)

您还可以在门户网站

中注册订阅下的资源提供者

enter image description here

答案 3 :(得分:2)

这里的说明对我有用:https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-register-provider-errors#solution-3---azure-portal

从门户中,选择“所有服务”。

enter image description here

选择订阅。

enter image description here

从订阅列表中,选择要用于注册资源提供者的订阅。

enter image description here 对于您的订阅,选择资源提供者。

enter image description here

查看资源提供者列表,如有必要,选择“注册”链接以注册您要部署的类型的资源提供者。

enter image description here

enter image description here

答案 4 :(得分:2)

您可以在下面的链接中参考如何逐步在Azure中注册提供商

https://www.dotnetpiper.com/2020/05/resource-provider-registration-using.html

答案 5 :(得分:1)

您还可以使用z命令行工具

  • 注册
az provider register --namespace Microsoft.DataFactory
  • 注释

在登录并切换到所需的订阅之前执行这两个命令

az login
az account set --subscription <name or id>

答案 6 :(得分:1)

答案 7 :(得分:0)

我遇到了同样的问题:

Hyak.Common.CloudExceptionMissingSubscriptionRegistration: The subscription is not registered to use namespace 'Microsoft.DataFactory'.

我认为这是Data Factory Provider注册订阅方式的一个小错误。

我通过手动创建第一个数据工厂来解决这个问题,然后我可以使用以下方法自动创建下一个:

DataFactoryManagementClient

希望对使用Azure Data Factories的其他人有所帮助。

答案 8 :(得分:0)

我的目标:

我想在 Azure门户中为我的虚拟机创建一个自动关闭计划。然后,我收到以下错误消息:Schedule failed to update {"error":{"code":"MissingSubscriptionRegistration","message":"The subscription is not registered to use namespace 'Microsoft.DevTestLab'. See https://aka.ms/rps-not-found for how to register subscriptions.","details":[{"code":"MissingSubscriptionRegistration","target":"Microsoft.DevTestLab","message":"The subscription is not registered to use namespace 'Microsoft.DevTestLab'. See https://aka.ms/rps-not-found for how to register subscriptions."}]}}

错误消息是什么?

是说The subscription is not registered to use namespace '**Microsoft.DevTestLab**

如何注册该名称空间?

  1. 单击Azure门户上的“订阅”选项卡
  2. 选择“资源提供者”
  3. 在搜索框中输入要注册的名称空间
  4. 单击“注册”按钮
  5. 大约需要5分钟才能完成注册,一切准备就绪。

enter image description here

答案 9 :(得分:0)

用户PowerShell核心和AZ 3.3.0对我有效:

Register-AzResourceProvider -ProviderNamespace Microsoft.Network

答案 10 :(得分:0)

第一步。

az account list

第 2 步。

az account set --subscription "Pago por uso"

第 3 步。

az provider register --namespace Microsoft.DataFactory

注册仍在进行中。您可以使用 az provider show -n Microsoft.DataFactory

进行监控