Azure 事件中心 - 资源管理器异常Azure Event Hubs - Resource Manager exceptions

本文列出了使用 Azure 资源管理器通过模板或直接调用来与 Azure 事件中心交互时生成的异常。This article lists exceptions generated when interacting with Azure Event Hubs using Azure Resource Manager - via templates or direct calls.

重要

本文档经常更新。This document is frequently updated. 请回头查看是否有更新。Please check back for updates.

以下部分提供了通过 Azure 资源管理器公开的各种异常/错误。The following sections provide various exceptions/errors that are surfaced through Azure Resource Manager.

错误代码:ConflictError code: Conflict

错误代码Error code 错误子代码Error subcode 错误消息Error message 说明Description 建议Recommendation
ConflictConflict 4030040300 已达到或超过 EventHub 类型的资源数上限。The maximum number of resources of type EventHub has been reached or exceeded. 实际数目: #,最大允许数目: #Actual: #, Max allowed: # 命名空间已达到其可以包含的事件中心数配额The namespace has reached its quota for the number of Event Hubs it can contain. 从命名空间中删除所有未使用或无关的事件中心。Delete any unused or extraneous event hubs from the namespace.
ConflictConflict none 后端存在冲突,命名空间更新失败。Namespace update failed with conflict in backend. 当前正在对此命名空间执行另一项操作。Another operation is currently being done on this namespace. 等待当前操作完成,然后重试。Wait until the current operation completes, and then retry.

错误代码:429Error code: 429

错误代码Error code 错误子代码Error subcode 错误消息Error message 说明Description 建议Recommendation
429429 none 命名空间预配正在转换Namespace provisioning in transition 当前正在对此命名空间执行另一项操作。Another operation is currently being done on this namespace. 等待当前操作完成,然后重试。Wait until the current operation completes, and then retry.

错误代码:BadRequestError code: BadRequest

错误代码Error code 错误子代码Error subcode 错误消息Error message 说明Description 建议Recommendation
BadRequestBadRequest 4000040000 无法更改事件中心的 PartitionCount。PartitionCount can't be changed for an event hub. Azure 事件中心基本层或标准层不支持更改分区。Basic or standard tier of Azure Event Hubs doesn't support changing partitions. 在基本或标准层命名空间中使用所需的分区数创建新的事件中心。Create a new event hub with the wanted number of partitions in your basic or standard tier namespace.
BadRequestBadRequest 4000040000 MessageRetentionInDays 的 '#' 值对于基本层无效。The value '#' for MessageRetentionInDays isn't valid for the Basic tier. 该值不能超过 '1' 天。the value can't exceed '1' day(s). 基本层事件中心命名空间仅支持最长 1 天的消息保留期。Basic tier Event Hubs namespaces only support message retention of up to 1 day. 如果需要一天以上的消息保留期,请创建标准事件中心命名空间If more than one day of message retention is wanted, create a standard Event Hubs namespace.
BadRequestBadRequest none 指定的名称不可用。The specified name isn't available. 命名空间名称必须唯一,而指定的名称已被使用。Namespace names must be unique, and the specified name is already taken. 如果你是使用指定名称的现有命名空间的所有者,可将其删除,但这会导致数据丢失。If you're the owner of the existing namespace with the specified name, you can delete it, which will cause data loss. 然后重试相同的名称。Then, try again with the same name. 如果不能安全删除该命名空间(或者你不是所有者),请选择另一个命名空间名称。If the namespace isn't safe to delete (or you aren't the owner), choose another namespace name.
BadRequestBadRequest none 指定的订阅已达到其命名空间配额。The specified subscription has reached its quota of namespaces. 订阅已达到其可以包含的命名空间数配额Your subscription has reached the quota for the number of namespaces it can hold. 考虑删除此订阅中未使用的命名空间,创建另一个订阅。Consider deleting unused namespaces in this subscription, creating another subscription.
BadRequestBadRequest none 无法在基本 SKU 中设置自动扩充Can't set Auto-Inflate in basic SKU 无法在基本层事件中心命名空间中启用自动扩充。Auto-Inflate can't be enabled on basic tier Event Hubs namespaces. 若要在命名空间中启用自动扩充,请确保它位于标准层。To enable Auto Inflate on a namespace, make sure it's of standard tier.
BadRequestBadRequest none 容量不足,无法创建命名空间。There isn't enough capacity to create the namespace. 请联系事件中心管理员。Contact your Event Hubs administrator. 所选区域已达到容量限制,无法创建更多命名空间。The selected region is at capacity and more namespaces can't be created. 选择另一个区域来容纳命名空间。Select another region to house your namespace.
BadRequestBadRequest none 无法对实体类型 'ConsumerGroup' 执行该操作,因为命名空间 '<命名空间名称>' 使用的是“基本”层。The operation can't be done on entity type 'ConsumerGroup' because the namespace 'namespace name' is using 'Basic' tier. 基本层事件中心命名空间的配额为一个使用者组(默认)。Basic tier Event Hubs namespaces have a quota of one consumer group (the default). 不支持创建更多使用者组。Creating more consumer groups isn't supported. 继续使用默认使用者组 ($Default),如果需要更多使用者组,请考虑改用标准层事件中心命名空间。Continue using the default consumer group ($Default), or if more are needed, consider using a standard tier Event Hubs namespace instead.
BadRequestBadRequest none 命名空间 '<命名空间名称>' 不存在。The namespace 'namespace name' doesn't exist. 找不到提供的命名空间。The namespace provided couldn't be found. 仔细检查命名空间名称是否正确,以及是否可以在订阅中找到该名称。Double check that the namespace name is correct and can be found in your subscription. 如果找不到,请创建事件中心命名空间If it isn't, create an Event Hubs namespace.
BadRequestBadRequest none 资源的 location 属性与其包含命名空间不匹配。The location property of the resource doesn't match its containing Namespace. 在特定区域中创建事件中心失败,因为此区域与命名空间的区域不匹配。Creating an event hub in a specific region failed because it didn't match the region of the namespace. 尝试在命名空间所在的同一区域中创建事件中心。Try creating the event hub in the same region as the namespace.

错误代码:内部服务器错误Error code: Internal server error

错误代码Error code 错误子代码Error subcode 错误消息Error message 说明Description 建议Recommendation
内部服务器错误Internal Server Error none 内部服务器错误。Internal Server Error. 事件中心服务出现内部错误。The Event Hubs service had an internal error. 重试失败的操作。Retry the failing operation. 如果操作仍然失败,请联系支持人员。If the operation continues to fail, contact support.