使用 Azure App Service 保留實例節省成本Save costs with Azure App Service reserved instances

本文說明如何使用 Azure App Service 保留實例來儲存 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 App Service 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 Advisor 提供個別訂用帳戶的購買建議。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.
  • 針對 Enterprise 合約 (EA) 和 Microsoft 客戶合約 (MCA) 客戶,可透過 Azure 使用量見解 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. 訂用帳戶類型必須是 enterprise 合約 (供應專案號碼: MS-AZR-0003P->ms-azr-0017p 或 MS-AZR-0003P-Ms-azr-0148p) 或 Microsoft 客戶合約,或是採用隨用隨付費率的個別訂用帳戶 (供應專案號碼: MS-MS-AZR-0003P-Ms-azr-0003p 或 MS-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. Quantity 是可取得帳單折扣的執行中 Premium v3 保留實例數目。The quantity is the number of running Premium v3 reserved instances that can get the billing discount. 例如,如果您在美國東部執行10個標準 _ 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 App Service 隔離式方案戳記費用的成本。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. 請查看您的使用量資料,以決定您一直在使用並可能會在未來使用的 App Service 隔離式方案戳記數目。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. 訂用帳戶類型必須是 Enterprise 合約 (供應項目號碼: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.
    • 針對 Enterprise 訂用帳戶,費用會從註冊的 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. 針對 Enterprise 合約客戶,計費內容為註冊。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. 輸入要保留的 App Service 隔離式方案戳記數量。Enter the quantity of App Service Isolated stamps to reserve. 例如,數量為三會在一個區域內提供三個保留戳記。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.

如果您是 Enterprise 合約 (EA) 客戶且需要保留折扣在使用量資料中顯示方式的詳細資訊,請參閱取得 Enterprise 合約保留成本和使用量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