您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

Azure 支出限制Azure spending limit

Azure 中的支出限制可以防止支出超过额度金额。The spending limit in Azure prevents spending over your credit amount. 如果新客户注册包括几个月额度的 Azure 免费帐户或订阅类型,则这些客户都将默认开启支出限制。All new customers who sign up for an Azure free account or subscription types that include credits over multiple months have the spending limit turned on by default. 支出限制为额度金额,不能更改。The spending limit is equal to the amount of credit and it can’t be changed. 例如,如果注册获取 Azure 免费帐户,则支出限制为 200 美元,不能将其更改为 500 美元。For example, if you signed up for Azure free account, your spending limit is $200 and you can't change it to $500. 但是,可以移除支出限制。However, you can remove the spending limit. 因此,你要么没有限制,要么限制为额度金额。So, you either have no limit, or you have a limit equal to the amount of credit. 这导致你无法完成大多数类型的支出。This prevents you from most kinds of spending. 支出限制不适用于具有承诺计划或使用即用即付定价的订阅。The spending limit isn’t available for subscriptions with commitment plans or with pay-as-you-go pricing. 请参阅 Azure 订阅类型以及支出限制可用性的完整列表See the full list of Azure subscription types and the availability of the spending limit.

达到支出限制Reaching a spending limit

因使用而产生的费用已经用完了支出限制时,部署的服务会在该计费月的剩余时间中被禁用。When your usage results in charges that exhaust your spending limit, the services that you deployed are disabled for the rest of that billing period.

例如,用完 Azure 免费帐户中所含的额度后,部署的 Azure 资源会从生产中移除,Azure 虚拟机会被停止并取消分配。For example, when you spend all the credit included with your Azure free account, Azure resources that you deployed are removed from production and your Azure virtual machines are stopped and de-allocated. 你的存储帐户中的数据将只能通过只读方式访问。The data in your storage accounts are available as read-only.

在下一计费周期开始时,如果订阅类型包含多个月的额度,则会自动重新启用订阅。If your subscription type includes credits over multiple months, your subscription is re-enabled automatically at the beginning of the next billing period. 然后就可重新部署 Azure 资源,并可完全访问存储帐户和数据库。Then you can redeploy your Azure resources and have full access to your storage accounts and databases.

达到支出限制时,Azure 会发送电子邮件通知。Azure sends email notifications when you reach the spending limit. 登录到 Azure 门户,查看已达到支出限制的订阅的相关通知。Sign in to the Azure portal to see notifications about subscriptions that have reached the spending limit.

如果注册获取 Azure 免费帐户并达到支出限制,可以升级到即用即付定价,以取消支出限制并自动重新启用订阅。If you signed up for an Azure free account and reach the spending limit, you can upgrade to a pay-as-you-go pricing to remove the spending limit and automatically re-enable your subscription.

在 Azure 门户中消除支出限制Remove the spending limit in Azure portal

只要 Azure 订阅关联了有效的付款方法,即可随时移除支出限制。You can remove the spending limit at any time as long as there's a valid payment method associated with your Azure subscription. 对于具有多个月额度的订阅类型(例如 Visual Studio Enterprise 和 Visual Studio Professional),还可以在下个计费周期开始时启用支出限制。For subscription types that have credit over multiple months such as Visual Studio Enterprise and Visual Studio Professional, you can also enable the spending limit at the beginning of your next billing period.

若要移除支出限制,请按照以下步骤操作:To remove your spending limit, follow these steps:

  1. 登录到 Azure 门户Sign in to the Azure portal.
  2. 选择一个订阅。Select a subscription. 如果达到订阅的支出限制,则会禁用订阅。If the spending limit of the subscription is reached, it will be disabled.
  3. 选择页面顶部的“消除支出限制”。 Select Remove spending limit from the top of the page.
  4. 选择适合选项。Select an option that is appropriate for you.

选择删除支出限制的选项

选项Option 效果Effect
永久性移除支出限制Remove spending limit indefinitely 移除支出限制,且在下次计费期开始不自动打开此限制。Removes the spending limit without turning it on automatically at the start of the next billing period.
移除当前计费期间的支出限制Remove spending limit for the current billing period 移除支出限制,使其在下次计费期开始时自动重新打开。Removes the spending limit so that it turns back on automatically at the start of the next billing period.

为什么需要移除支出限制Why you might want to remove the spending limit

支出限制会阻止你部署或使用某些第三方和 Microsoft 服务。The spending limit could prevent you from deploying or using certain third-party and Microsoft services. 有些情况应移除订阅上的支出限制。Here are the situations where you should remove the spending limit on your subscription.

  • 计划部署第一方映像(如 Oracle)或服务(如 Azure DevOps Services)。You plan to deploy first party images like Oracle or services such as Azure DevOps Services. 此情况几乎立马导致你达到支出限制并导致订阅被禁。This situation causes you to reach your spending limit almost immediately and causes your subscription to be disabled.
  • 拥有不希望其中断的服务。You have services that you don't want disrupted. 达到支出限制时,会从生产中移除部署的 Azure 资源,Azure 虚拟机会被停止并取消分配。When you reach your spending limit, Azure resources that you deployed are removed from production and your Azure virtual machines are stopped and de-allocated. 如果有不希望其中断的服务,则必须消除支出限制。If you have services that you don't want disrupted, you must remove your spending limit.
  • 服务和资源包含希望保留的设置,如虚拟 IP 地址。You have services and resources with settings like virtual IP addresses that you don't want to lose. 这些设置会在达到支出限制且服务和资源被取消分配时丢失。These settings are lost when your reach your spending limit and the services and resources are de-allocated.

取消支出限制后重新启用该限制Turn on the spending limit after removing

对于包含多个月额度的订阅类型来说,仅当已无限期移除支出限制时,此功能才可用。This feature is available only when the spending limit has been removed indefinitely for subscription types that include credits over multiple months. 可以使用此功能,在下次计费期开始时自动打开支出限制。You can use this feature to turn on your spending limit automatically at the start of the next billing period.

  1. 登录到帐户中心Sign in to the Account Center.
  2. 单击黄色横幅更改支出限制选项。Click the yellow banner to change the spending limit option.
  3. 选择“在下一计费周期的<计费周期的开始日期>启用支出限制” Choose Turn on spending limit in the next billing period <start date of billing period>

自定义支出限制Custom spending limit

自定义支出限制不可用。Custom spending limits aren't available.

支出限制并不防止所有费用A spending limit doesn't prevent all charges

已在 Azure 市场中发布的一些外部服务不能与订阅额度一起使用,即使设置了支出限制,这些服务也会产生单独的费用。Some external services published in the Azure Marketplace can't be used with your subscription credits, and can incur separate charges even when your spending limit is set. 例如,Visual Studio 许可证、Azure Active Directory Premium、支持计划以及大多数第三方品牌服务。Examples include Visual Studio licenses, Azure Active Directory premium, support plans, and most third-party branded services. 预配新的外部服务时,将显示一条提示此服务会单独计费的警告:When you provision a new external service, a warning is shown to let you know the services are billed separately:

市场购买警告

需要帮助?Need help? 请联系我们。Contact us.

如有任何疑问或需要帮助,请创建支持请求If you have questions or need help, create a support request.

后续步骤Next steps