使用情况和计费注册错误代码Usage and billing registration error codes

如果你是云解决方案提供商 (CSP) ,则 将租户添加 到注册以便针对客户的 AZURE 订阅 ID 进行报告使用时,可能会出现以下错误消息。If you're a Cloud Solution Provider (CSP), the following error messages can appear when adding tenants to a registration for reporting usage against the customer's Azure subscription ID.

注册错误代码列表List of registration error codes

错误Error 详细信息Details 注释Comments
RegistrationNotFoundRegistrationNotFound 提供的注册未找到。The provided registration wasn't found. 确保正确提供以下信息:Make sure the following information was provided correctly:
1.订阅标识符(提供的值:订阅标识符);1. Subscription identifier (value provided: subscription identifier),
2.资源组(提供的值:资源组);2. Resource group (value provided: resource group),
3.注册名称(提供的值:注册名称)。3. Registration name (value provided: registration name).
当指向初始注册的信息不正确时,通常会发生此错误。This error usually happens when the information pointing to the initial registration isn't correct. 如需验证注册的资源组和名称,可以通过列出所有资源的方式在 Azure 门户中找到它。If you need to verify the resource group and name of your registration, you can find it in the Azure portal, by listing all resources. 如果找到多个注册资源,请查看属性中的 CloudDeploymentID,然后选择其 CloudDeploymentID 与云的 CloudDeploymentID 匹配的注册。If you find more than one registration resource, look at the CloudDeploymentID in the properties, and select the registration whose CloudDeploymentID matches that of your cloud. 若要查找 CloudDeploymentID,可以在 Azure Stack Hub 上使用以下 PowerShell 命令:To find the CloudDeploymentID, you can use this PowerShell command on Azure Stack Hub:
$azureStackStampInfo = Invoke-Command -Session $session -ScriptBlock { Get-AzureStackStampInformation }
BadCustomerSubscriptionIdBadCustomerSubscriptionId 提供的客户订阅标识符和注册名称订阅标识符不是由同一 Microsoft CSP 拥有 。The provided customer subscription identifier and the registration name subscription identifier aren't owned by the same Microsoft CSP. 检查客户订阅标识符是否正确。Check that the customer subscription identifier is correct. 客户订阅 ID 区分大小写。The customer subscription ID is case sensitive. 如果问题仍然存在,请联系支持部门。If the problem persists, contact support. 如果客户订阅为 CSP 订阅,但它汇总到 CSP 合作伙伴时,该合作伙伴不同于在初始注册中使用的订阅所汇总到的合作伙伴,则会发生此错误。This error happens when the customer subscription is a CSP subscription, but it rolls up to a CSP partner different from the one to which the subscription used in the initial registration rolls up. 进行此检查是为了防止会导致向不对所用的 Azure Stack Hub 负责的 CSP 合作伙伴计费的情况。This check is made to prevent a situation that would result in billing a CSP partner who isn't responsible for the Azure Stack Hub used.
InvalidCustomerSubscriptionIdInvalidCustomerSubscriptionId 客户订阅标识符无效。The customer subscription identifier isn't valid. 确保提供有效的 Azure 订阅。Make sure a valid Azure subscription is provided.
CustomerSubscriptionNotFoundCustomerSubscriptionNotFound 在注册名称下找不到客户订阅标识符 。Customer subscription identifier wasn't found under registration name. 确保使用有效的 Azure 订阅,并已使用 PUT 操作将订阅 ID 添加到注册。Make sure a valid Azure subscription is being used and that the subscription ID was added to the registration using the PUT operation. 尝试验证是否已向订阅添加租户但却找不到与注册关联的客户订阅时,会发生此错误。This error happens when trying to verity that a tenant has been added to a subscription but the customer subscription isn't found to be associated with the registration. 尚未将客户添加到订阅,或者订阅 ID 写入错误。The customer hasn't been added to the registration, or the subscription ID has been written incorrectly.
UnauthorizedCspRegistrationUnauthorizedCspRegistration 提供的注册名称尚未获批使用多租户。The provided registration name isn't approved to use multi-tenancy. 请向 azstCSP@microsoft.com 发送电子邮件,并提供注册名称、资源组以及在注册中使用的订阅标识符。Send an email to azstCSP@microsoft.com and include your registration name, resource group, and the subscription identifier used in the registration. 注册需要获得 Microsoft 的批准,在允许使用多租户后,才能开始向其添加租户。A registration must be approved for multi-tenancy by Microsoft before you can start adding tenants to it.
CustomerSubscriptionsNotAllowedCustomerSubscriptionsNotAllowed 不支持对断开连接的客户执行客户订阅操作。Customer subscription operations aren't supported for disconnected customers. 若要使用此功能,请使用即用即付许可重新注册。To use this feature, re-register with pay-as-you-use licensing. 你尝试向其添加租户的注册是一个容量注册。The registration to which you're trying to add tenants is a capacity registration. 因此在创建该注册时,使用了参数 BillingModel CapacitySo when the registration was created, the parameter BillingModel Capacity was used. 只允许“即用即付”注册添加租户。Only pay-as-you-use registrations are allowed to add tenants. 必须使用参数 BillingModel PayAsYouUse 重新注册。You must re-register using the parameter BillingModel PayAsYouUse.
InvalidCSPSubscriptionInvalidCSPSubscription 提供的客户订阅标识符不是有效的 CSP 订阅。The provided customer subscription identifier isn't a valid CSP subscription. 确保提供有效的 Azure 订阅。Make sure a valid Azure subscription is provided. 该错误很有可能是错误地键入了客户订阅。This error is most likely due to the customer subscription being mistyped.
MetadataResolverBadGatewayErrorMetadataResolverBadGatewayError 某个上游服务器返回了异外错误。One of the upstream servers returned an unexpected error. 请稍后重试。Try again later. 如果问题仍然存在,请联系支持部门。If the problem persists, contact support.

后续步骤Next steps