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

节省 Azure 应用服务预留实例的费用Save costs with Azure App Service reserved instances

本文介绍了可如何使用 Azure 应用服务预留实例节省 Premium v3 实例和独立印花费。This article explains how you can save with Azure App Service reserved instances for Premium v3 instances and Isolated Stamp Fees.

使用 Premium v3 预留实例节省费用Save with Premium v3 reserved instances

承诺使用 Azure 应用服务 Premium v3 预留实例后,即可节省费用。When you commit to an Azure App Service Premium v3 reserved instance you can save money. 预订折扣会自动应用于与预留范围和属性相匹配的正在运行的虚拟机数量。The reservation discount is applied automatically to the number of running instances that match the reservation scope and attributes. 无需向实例分配预留即可享受折扣。You don't need to assign a reservation to an instance to get the discounts.

购买前请确定适当的预留实例大小Determine the right reserved instance size before you buy

购买预留之前,应确定所需的 Premium v3 预留实例的大小。Before you buy a reservation, you should determine the size of the Premium v3 reserved instance that you need. 以下部分将帮助你确定适当的 Premium v3 预留实例大小。The following sections will help you determine the right Premium v3 reserved instance size.

使用预留建议Use reservation recommendations

可使用预留建议来帮助确定你应购买的预留项。You can use reservation recommendations to help determine the reservations you should purchase.

  • 在 Azure 门户中购买 Premium v3 预留实例时,会看到购买建议和建议的数量。Purchase recommendations and recommended quantity are show when you purchase a Premium v3 reserved instance in the Azure portal.
  • Azure 顾问会为每个订阅提供购买建议。Azure Advisor provides purchase recommendations for individual subscriptions.
  • 可使用 API 来获取有关共享范围和单个订阅范围的购买建议。You can use the APIs to get purchase recommendations for both shared scope and single subscription scope. 有关详细信息,请查看适用于企业客户的预留实例购买建议 APIFor more information, see Reserved instance purchase recommendation APIs for enterprise customers.
  • 对于企业协议 (EA) 和 Microsoft 客户协议 (MCA) 客户,可通过 Azure Consumption Insights Power BI 内容包获取共享范围和单个订阅范围的购买建议。For Enterprise Agreement (EA) and Microsoft Customer Agreement (MCA) customers, purchase recommendations for shared and single subscription scopes are available with the Azure Consumption Insights Power BI content pack.

分析使用信息Analyze your usage information

分析你的使用信息,帮助确定应购买哪一种预留。Analyze your usage information to help determine which reservations you should purchase. 可在使用情况文件和 API 中获取使用数据。Usage data is available in the usage file and APIs. 可结合这两者来确定要购买哪一种预留。Use them together to determine which reservation to purchase. 查看每日使用量较高的 Premium v3 实例,确定要购买的预留数量。Check for Premium v3 instances that have high usage on daily basis to determine the quantity of reservations to purchase.

使用情况文件按计费周期和每日使用情况显示费用信息。Your usage file shows your charges by billing period and daily usage. 若要了解如何下载使用情况文件,请参阅查看和下载 Azure 使用情况信息和费用For information about downloading your usage file, see View and download your Azure usage and charges. 然后,借助使用情况文件信息,可确定要购买的具体预留Then, by using the usage file information, you can determine what reservation to purchase.

购买 Premium v3 预留实例Buy a Premium v3 reserved instance

可在 Azure 门户中购买预留的 Premium v3 预留实例。You can buy a reserved Premium v3 reserved instance in the Azure portal. 通过提前付款或按月付款的方式为预留付款。Pay for the reservation up front or with monthly payments. 购买 Premium v3 预留实例时需满足以下要求:These requirements apply to buying a Premium v3 reserved instance:

  • 你必须具有至少一个 EA 订阅或采用即用即付费率的订阅的所有者角色。You must be in an Owner role for at least one EA subscription or a subscription with a pay-as-you-go rate.
  • 对于 EA 订阅,必须在 EA 门户中启用“添加预留实例”选项。For EA subscriptions, the Add Reserved Instances option must be enabled in the EA portal. 或者,如果禁用了该设置,则必须是订阅的 EA 管理员。Or, if that setting is disabled, you must be an EA Admin for the subscription.
  • 对于云解决方案提供商 (CSP) 计划,只有管理员代理或销售代理才能购买预留。For the Cloud Solution Provider (CSP) program, only the admin agents or sales agents can buy reservations.

若要购买实例,请执行以下操作:To buy an instance:

  1. 登录 Azure 门户Sign in to the Azure portal.
  2. 选择“所有服务” > “预订” 。Select All services > Reservations.
  3. 选择“添加”以购买新的预留,然后单击“实例” 。Select Add to purchase a new reservation and then click Instance.
  4. 输入必填字段。Enter required fields. 与所选属性匹配的正在运行的 Premium v3 预留实例有资格享受预留折扣。Running Premium v3 reserved instances that match the attributes you select qualify for the reservation discount. 可享受折扣的 Premium v3 预留实例的实际数目取决于所选范围和数量。The actual number of your Premium v3 reserved instances that get the discount depend on the scope and quantity selected.

如果你有 EA 协议,则可使用“添加更多选项”来快速添加其他实例。If you have an EA agreement, you can use the Add more option to quickly add additional instances. 此选项不可用于其他订阅类型。The option isn't available for other subscription types.

字段Field 说明Description
订阅Subscription 用于支付预订费用的订阅。The subscription used to pay for the reservation. 将向订阅的付款方式收取预留的费用。The payment method on the subscription is charged the costs for the reservation. 订阅类型必须为企业协议(套餐编号:MS-AZR-0017P 或 MS-AZR-0148P)或 Microsoft 客户协议或采用即用即付费率的个人订阅中担任所有者角色(套餐编号:MS-AZR-0003P 或 MS-AZR-0023P)。The subscription type must be an enterprise agreement (offer numbers: MS-AZR-0017P or MS-AZR-0148P) or Microsoft Customer Agreement or an individual subscription with pay-as-you-go rates (offer numbers: MS-AZR-0003P or MS-AZR-0023P). 从货币承诺余额中扣除费用(如果可用)或作为超额收取费用。The charges are deducted from the monetary commitment balance, if available, or charged as overage. 对于采用即用即付费率的订阅,将向订阅的信用卡或发票付款方式收取费用。For a subscription with pay-as-you-go rates, the charges are billed to the credit card or invoice payment method on the subscription.
范围Scope 预订的范围可以包含一个订阅或多个订阅(共享范围)。The reservation's scope can cover one subscription or multiple subscriptions (shared scope). 如果选择:If you select:
  • 单个资源组范围 - 仅将预留折扣应用到所选资源组中匹配的资源。Single resource group scope — Applies the reservation discount to the matching resources in the selected resource group only.
  • 单个订阅范围 - 将预留折扣应用到所选订阅中匹配的资源。Single subscription scope — Applies the reservation discount to the matching resources in the selected subscription.
  • 共享范围 - 将预留折扣应用到计费上下文中符合条件的订阅中的匹配资源。Shared scope — Applies the reservation discount to matching resources in eligible subscriptions that are in the billing context. 对于 EA 客户,计费上下文是“注册”。For EA customers, the billing context is the enrollment. 对于采用即用即付费率的单个订阅,计费范围是由帐户管理员创建的所有符合条件的订阅。For individual subscriptions with pay-as-you-go rates, the billing scope is all eligible subscriptions created by the account administrator.
区域Region 预订涵盖的 Azure 区域。The Azure region that's covered by the reservation.
Premium v3 预留实例大小Premium v3 reserved instance size Premium v3 预留实例的大小。The size of the Premium v3 reserved instances.
术语Term 一年或三年。One year or three years. 还有一个 5 年期,它仅适用于 HBv2 Premium v3 预留实例。There's also a 5-year term available only for HBv2 Premium v3 reserved instances.
数量Quantity 预订中购买的实例数。The number of instances being purchased within the reservation. 数量是正在运行且可享受计费折扣的 Premium v3 预留实例数量。The quantity is the number of running Premium v3 reserved instances that can get the billing discount. 例如,如果你正在美国东部运行 10 个 Standard_D2 Premium v3 预留实例,则将数量指定为 10,以使所有正在运行的 Premium v3 预留实例尽可能获得最大优势。For example, if you are running 10 Standard_D2 Premium v3 reserved instances in the East US, then you would specify quantity as 10 to maximize the benefit for all running Premium v3 reserved instances.

节省独立印花费用Save with Isolated Stamp Fees

可以通过承诺在三年内使用预留的量,节省 Azure 独立应用服务印花费。You can save money on Azure App Service Isolated Stamp Fees by committing to a reservation for your stamp usage for a duration of three years. 若要购买独立印花费预留容量,需选择要在其中部署印花的 Azure 区域,以及要购买的印花数。To purchase Isolated Stamp Fee reserved capacity, you need to choose the Azure region where the stamp will be deployed and the number of stamps to purchase.

在你购买预留容量后,与预留属性匹配的独立印花费使用量不再按即用即付费率进行收费。When you purchase a reservation, the Isolated Stamp Fee usage that matches the reservation attributes is no longer charged at the pay-as-you go rates. 预留自动应用到与预留容量范围和区域匹配的独立印花数。The reservation is applied automatically to the number of Isolated stamps that match the reserved capacity scope and region. 不需为独立印花分配预留。You don't need to assign a reservation to an isolated stamp. 预留不适用于辅助角色,因此与印花相关的任何其他资源将单独收费。The reservation doesn't apply to workers, so any other resources associated with the stamp are charged separately.

如果预留容量到期,独立印花会继续运行,但按即用即付的费率进行计费。When the reserved capacity expires, Isolated Stamps continue to run but they're billed at the pay-as-you go rate. 预留容量不会自动续订。Reservations don't renew automatically.

确定要购买的适当独立印花预留Determine the right Isolated Stamp reservation to purchase

购买预留是指你承诺在接下来的三年中使用预留的量。By purchasing a reservation, you're committing to using reserved quantities over next three years. 查看使用数据,确定你在未来会持续使用和可能使用的应用服务独立印花量。Check your usage data to determine how many App Service Isolated Stamps you're consistently using and might use in the future.

另外,确保你了解独立印花如何发出 Linux 或 Windows 计量。Additionally, make sure you understand how the Isolated Stamp emits Linux or Windows meter.

  • 默认情况下,空的独立印花发出 Windows 印花计量。By default, an empty Isolated Stamp emits the Windows stamp meter. 例如,在没有部署辅助角色的情况下。For example, with no workers deployed. 如果 Windows 辅助角色部署到印花上,它会继续发出此计量。It continues to emit this meter if Windows workers are deployed on the stamp.
  • 如果部署 Linux 辅助角色,则计量更改为 Linux 印花计量。The meter changes to the Linux stamp meter if you deploy a Linux worker.
  • 如果同时部署 Linux 和 Windows 辅助角色,则印花发出 Windows 记量。In cases where both Linux and Windows workers are deployed, the stamp emits the Windows meter.

因此,印花计量可以在印花生存期中在 Windows 和 Linux 之间来回变换。So, the stamp meter can change between Windows and Linux over the life of the stamp.

如果印花上有一个或多个 Windows 辅助角色,请购买 Windows 印花预留。Buy Windows stamp reservations if you have one or more Windows workers on the stamp. 只购买 Linux 印花预留的前提是计划只 在印花上部署 Linux 辅助角色。The only time you should purchase a Linux stamp reservation is if you plan to only have Linux workers on the stamp.

购买独立印花预留容量Buy Isolated Stamp reserved capacity

可在 Azure 门户中购买独立印花预留容量。You can buy Isolated Stamp reserved capacity in the Azure portal. 通过提前付款或按月付款的方式为预留付款。Pay for the reservation up front or with monthly payments. 若要购买预留容量,你必须拥有至少一个企业订阅的所有者角色,或者拥有使用即用即付费率的单个订阅的所有者角色。To buy reserved capacity, you must have the owner role for at least one enterprise subscription or an individual subscription with pay-as-you-go rates.

  • 对于企业订阅,必须在 EA 门户中启用“添加预留实例”选项 。For Enterprise subscriptions, the Add Reserved Instances option must be enabled in the EA portal. 或者,如果禁用了该设置,则必须是 EA 管理员。Or, if the setting is disabled, you must be an EA Admin.
  • 对于云解决方案提供商 (CSP) 计划,只有管理员代理或销售代理可以购买 Azure Synapse Analytics 预留容量。For the Cloud Solution Provider (CSP) program, only the admin agents or sales agents can purchase Azure Synapse Analytics reserved capacity.

若要进行购买,请执行以下操作:To Purchase:

  1. 转到 Azure 门户Go to the Azure portal.
  2. 选择一个订阅。Select a subscription. 使用“订阅”列表,选择用于支付预留容量费用的订阅。 Use the Subscription list to choose the subscription that's used to pay for the reserved capacity. 将向订阅的付款方式收取预留容量的费用。The payment method of the subscription is charged the costs for the reserved capacity. 订阅类型必须为企业协议(套餐编号:MS-AZR-0017P 或 MS-AZR-0148P),或即用即付(产品/服务编号:MS-AZR-0003P 或 MS-AZR-0023P)或 CSP 订阅。The subscription type must be an enterprise agreement (offer numbers: MS-AZR-0017P or MS-AZR-0148P) or Pay-As-You-Go (offer numbers: MS-AZR-0003P or MS-AZR-0023P) or a CSP subscription.
    • 对于企业订阅,从注册的 Azure 预付款(以前称为货币承诺)余额中扣除费用或按超额收取费用。For an enterprise subscription, the charges are deducted from the enrollment's Azure Prepayment (previously called monetary commitment) balance or charged as overage.
    • 对于即用即付订阅,将向订阅的信用卡或发票付款方式收取费用。For Pay-As-You-Go subscription, the charges are billed to the credit card or invoice payment method on the subscription.
  3. 选择“范围”,以便选择订阅范围。 Select a Scope to choose a subscription scope.
    • 单个资源组范围 - 仅将预留折扣应用到所选资源组中匹配的资源。Single resource group scope — Applies the reservation discount to the matching resources in the selected resource group only.
    • 单个订阅范围 - 将预留折扣应用到所选订阅中匹配的资源。Single subscription scope — Applies the reservation discount to the matching resources in the selected subscription.
    • 共享范围 - 将预留折扣应用到计费上下文中符合条件的订阅中的匹配资源。Shared scope — Applies the reservation discount to matching resources in eligible subscriptions that are in the billing context. 对于企业协议客户,计费上下文为注册。For Enterprise Agreement customers, the billing context is the enrollment. 对于采用即用即付费率的单个订阅,计费范围是由帐户管理员创建的所有符合条件的订阅。For individual subscriptions with pay-as-you-go rates, the billing scope is all eligible subscriptions created by the account administrator.
  4. 选择“区域”,以便选择一个 预留容量涵盖的 Azure 区域,然后将预留添加到购物车。Select a Region to choose an Azure region that's covered by the reserved capacity and add the reservation to the cart.
  5. 选择一个独立计划类型,然后单击“选择”。 Select an Isolated Plan type and then click Select.
    示例 Example
  6. 输入要预留的独立应用服务印花的数量。Enter the quantity of App Service Isolated stamps to reserve. 例如,输入数量 3 即可每个区域获得 3 个预留印花。For example, a quantity of three would give you three reserved stamps a region. 单击“下一步: 查看 + 购买”。Click Next: Review + Buy.
  7. 检查信息,并单击“立即购买”。 Review and click Buy now.

购买后,转到预留,查看购买状态并随时对其进行监视。After purchase, go to Reservations to view the purchase status and monitor it at any time.

对预留执行取消、交换或退款操作Cancel, exchange, or refund reservations

可以在一定的限制下对预留执行取消、交换或退款操作。You can cancel, exchange, or refund reservations with certain limitations. 有关详细信息,请参阅 Azure 预留的自助交换和退款For more information, see Self-service exchanges and refunds for Azure Reservations.

在使用数据中显示的折扣应用情况Discount application shown in usage data

对于获得预留折扣的使用量,使用数据的有效价格为零。Your usage data has an effective price of zero for the usage that gets a reservation discount. 使用数据显示每个预留中的每个印花实例的预留折扣。The usage data shows the reservation discount for each stamp instance in each reservation.

若要详细了解预留折扣在使用数据中的显示情况,而且你是企业协议 (EA) 客户,请参阅获取企业协议预留成本和使用情况For more information about how reservation discount shows in usage data, see Get Enterprise Agreement reservation costs and usage if you're an Enterprise Agreement (EA) customer. 否则,请参阅了解采用即用即付费率的个人订阅的 Azure 预留使用情况Otherwise see, Understand Azure reservation usage for your individual subscription with pay-as-you-go rates.

后续步骤Next steps