向 Azure 回報 Azure Stack Hub 使用量資料Report Azure Stack Hub usage data to Azure

使用量資料 (也稱為取用資料) 代表所使用的資源量。Usage data, also called consumption data, represents the amount of resources used.

使用取用型計費模型的 Azure Stack Hub 多節點系統應該向 Azure 回報使用量資料以供計費。Azure Stack Hub multi-node systems that use the consumption-based billing model should report usage data to Azure for billing purposes. Azure Stack Hub 操作員應該設定其 Azure Stack Hub 執行個體,以向 Azure 回報使用量資料。Azure Stack Hub operators should configure their Azure Stack Hub instance to report usage data to Azure.

重要

所有工作負載都必須部署在租用戶訂用帳戶底下,才符合 Azure Stack Hub 的授權條款。All workloads must be deployed under tenant subscriptions to comply with the licensing terms of Azure Stack Hub.

使用隨用隨付模型的授權 Azure Stack Hub 多節點使用者時,需要使用方式資料包告。Usage data reporting is required for Azure Stack Hub multi-node users who license under the pay-as-you-use model. 對採用容量授權模型的客戶而言,則為選用功能 (請參閱購買方式頁面)。It's optional for customers who license under the capacity model (see the How to buy page). 對於 Azure Stack 開發套件 (ASDK) 使用者,Azure Stack Hub 操作員可以回報使用量資料,並測試此功能。For Azure Stack Development Kit (ASDK) users, Azure Stack Hub operators can report usage data and test the feature. 不過,使用者不會因為其造成的任何使用量而需要付費。However, users won't be charged for any usage they incur.

Azure Stack Hub 中的使用量資料計費流程

使用情況資料是從 Azure Stack Hub 透過 Azure Bridge 傳送到 Azure。Usage data is sent from Azure Stack Hub to Azure through the Azure Bridge. 在 Azure 中,商務系統會處理使用情況資料並產生帳單。In Azure, the commerce system processes the usage data and generates the bill. 產生帳單之後,Azure 訂用帳戶擁有者可以從 Azure 帳戶中心檢視並下載帳單。After the bill is generated, the Azure subscription owner can view and download it from the Azure Account Center. 若要瞭解 Azure Stack Hub 的授權方式,請參閱 Azure Stack Hub 封裝和定價 檔。To learn about how Azure Stack Hub is licensed, see the Azure Stack Hub packaging and pricing document.

設定使用情況資料報告Set up usage data reporting

若要設定使用情況資料報告,您必須向 Azure 註冊您的 Azure Stack Hub 執行個體To set up usage data reporting, you must register your Azure Stack Hub instance with Azure. 在註冊過程中,Azure Stack Hub 的 Azure Bridge 元件已完成設定。As part of the registration process, the Azure Bridge component of Azure Stack Hub is configured. Azure Bridge 元件會將 Azure Stack Hub 連線到 Azure。The Azure Bridge component is what connects Azure Stack Hub to Azure. 下列情況資料會從 Azure Stack Hub 傳送到 Azure:The following usage data is sent from Azure Stack Hub to Azure:

  • 計量識別碼 :所取用之資源的唯一識別碼。Meter ID - Unique ID for the resource that was consumed.
  • 數量 :資源使用量。Quantity - Amount of resource usage.
  • 位置 :目前 Azure Stack Hub 資源部署所在位置。Location - Location where the current Azure Stack Hub resource is deployed.
  • 資源 URI :將回報其使用狀況之資源的完整 URI。Resource URI - Fully qualified URI of the resource for which usage is being reported.
  • 訂用帳戶識別碼 :Azure Stack Hub 使用者的訂用帳戶識別碼,這是本機 (Azure Stack Hub) 訂用帳戶。Subscription ID - Subscription ID of the Azure Stack Hub user, which is the local (Azure Stack Hub) subscription.
  • 時間 :使用情況資料的開始與結束時間。Time - Start and end time of the usage data. 在 Azure Stack Hub 中取用這些資源與向商務系統回報使用情況資料的時間有一些延遲。There is some delay between the time when these resources are consumed in Azure Stack Hub and when the usage data is reported to commerce. Azure Stack Hub 每隔 24 小時會彙總一次使用情況資料,而向 Azure 中的商務管線回報使用情況資料則需要數小時。Azure Stack Hub aggregates usage data for every 24 hours, and reporting usage data to the commerce pipeline in Azure takes another few hours. 因此,在午夜前短暫發生的使用情況可能會在隔天顯示在 Azure 中。Therefore, usage that happens shortly before midnight can appear in Azure the following day.

產生使用情況資料回報Generate usage data reporting

  • 若要測試使用情況資料回報,請在 Azure Stack Hub 中建立一些資源。To test usage data reporting, create a few resources in Azure Stack Hub. 例如,您可以建立儲存體帳戶Windows Server VM 與 Linux VM (搭配基本與標準 SKU) 以查看核心使用情況的回報方式。For example, you can create a storage account, Windows Server VM, and a Linux VM with Basic and Standard SKUs to see how core usage is reported. 不同類型資源的使用情況資料會在不同的計量下回報。The usage data for different types of resources are reported under different meters.

  • 讓您的資源執行幾小時。Leave your resources running for a few hours. 系統大約每隔一小時會收集一次使用情況資訊。Usage information is collected approximately once every hour. 收集之後,此資料會傳輸到 Azure 並在 Azure 商務系統中處理。After collecting, this data is transmitted to Azure and processed into the Azure commerce system. 此程序可能需要最多數小時的時間。This process can take up to a few hours.

檢視使用量 - CSP 訂用帳戶View usage - CSP subscriptions

如果您已使用 CSP 訂用帳戶註冊您的 Azure Stack Hub,則可以檢視您的使用量和費用,方式和 Azure 耗用量的檢視方式相同。If you registered your Azure Stack Hub using a CSP subscription, you can view your usage and charges in the same way you view Azure consumption. Azure Stack Hub 使用量會包含在您的發票和對帳檔案中,透過合作夥伴中心即可取得。Azure Stack Hub usage is included in your invoice and in the reconciliation file, which is available through the Partner Center. 對帳檔案會每月更新。The reconciliation file is updated monthly. 如果您需要存取最新的 Azure Stack Hub 使用量資訊,您可以使用合作夥伴中心 API。If you need to access recent Azure Stack Hub usage information, you can use the Partner Center APIs.

在 Microsoft 合作夥伴中心檢視 Azure Stack Hub 的計費和使用量資料

檢視使用量 - Enterprise 合約訂用帳戶View usage - Enterprise Agreement subscriptions

如果您已使用 Enterprise 合約訂用帳戶註冊您的 Azure Stack Hub,則可以在 EA 入口網站檢視您的使用量和費用。If you registered your Azure Stack Hub using an Enterprise Agreement subscription, you can view your usage and charges in the EA portal. Azure Stack Hub 使用量會包含在進階下載中,Azure 使用量則會在此口網站的 [報告] 區段下。Azure Stack Hub usage is included in the advanced downloads along with Azure usage under the reports section in this portal.

檢視使用量 - 其他訂用帳戶View usage - other subscriptions

如果您已使用其他任何訂用帳戶類型 (例如,隨用隨付訂用帳戶) 註冊您的 Azure Stack Hub,則可以在 Azure 帳戶中心檢視使用量和費用。If you registered your Azure Stack Hub using any other subscription type (for example, a pay-as-you-go subscription), you can view usage and charges in the Azure Account Center. 以 Azure 帳戶系統管理員身分登入 Azure 帳戶中心,然後選取您用來註冊 Azure Stack Hub 的 Azure 訂用帳戶。Sign in to the Azure Account Center as the Azure account administrator and select the Azure subscription that you used to register Azure Stack Hub. 您可以檢視 Azure Stack Hub 使用情況資料,以及針對所使用之每個資源收取的費用,如下列影像所示:You can view the Azure Stack Hub usage data and the amount charged for each of the used resources, as shown in the following image:

在 Azure 帳戶中心檢視計費和使用量流程

針對 ASDK,我們不會就使用的 Azure Stack Hub 資源收費,因此價格顯示為 $0.00。For the ASDK, Azure Stack Hub resources aren't charged, so the price shown is $0.00.

哪些 Azure Stack Hub 部署需要付費?Which Azure Stack Hub deployments are charged?

ASDK 可免費使用資源。Resource usage is free for the ASDK. Azure Stack Hub 多節點系統、工作負載 VM、儲存體服務及應用程式服務都需要付費。Azure Stack Hub multi-node systems, workload VMs, storage services, and App Services are charged.

使用基礎結構 VM 是否需要付費?Are users charged for the infrastructure VMs?

否。No. 某些 Azure Stack Hub 資源提供者 VM 的使用量資料會回報給 Azure,但這些 VM 以及在部署期間為了啟用 Azure Stack Hub 基礎結構所建立的 VM,都沒有費用。Usage data for some Azure Stack Hub resource provider VMs are reported to Azure, but there are no charges for these VMs, nor for the VMs created during deployment to enable the Azure Stack Hub infrastructure.

使用者只需針對在租用戶訂用帳戶下執行的 VM 付費。Users are only charged for VMs that run under tenant subscriptions. 所有工作負載都必須部署在租用戶訂用帳戶底下,才符合 Azure Stack Hub 的授權條款。All workloads must be deployed under tenant subscriptions to comply with the licensing terms of Azure Stack Hub.

我有 Windows Server 授權並想要用在 Azure Stack Hub 上,我該怎麼做?I have a Windows Server license I want to use on Azure Stack Hub, how do I do it?

使用現有授權可避免產生使用量計量。Using the existing licenses avoids generating usage meters. 現有的 Windows Server 授權可用於 Azure Stack Hub。Existing Windows Server licenses can be used in Azure Stack Hub. Azure Stack Hub 授權指南的<在 Azure Stack Hub 使用現有軟體>一節中會有此程序的說明。This process is described in the "Using existing software with Azure Stack Hub" section of the Azure Stack Hub Licensing Guide. 客戶若要使用其現有授權,則必須依照適用於 Windows Server 授權的混合式權益中所述的方式部署其 Windows Server VM。In order to use their existing licenses, customers must deploy their Windows Server VMs as described in Hybrid benefit for Windows Server license.

會針對哪個訂用帳戶就所取用的資源收費?Which subscription is charged for the resources consumed?

我們會對向 Azure 註冊 Azure Stack Hub 時提供的訂用帳戶收費。The subscription that's provided when registering Azure Stack Hub with Azure is charged.

哪些類型的訂用帳戶支援使用情況資料回報?What types of subscriptions are supported for usage data reporting?

針對 Azure Stack Hub 多節點,支援「Enterprise 合約」(EA) 和 CSP 訂用帳戶。For Azure Stack Hub multi-node, Enterprise Agreement (EA) and CSP subscriptions are supported. 針對 ASDK,Enterprise 合約 (EA)、隨用隨付、CSP 及 MSDN 訂用帳戶可支援使用量資料回報。For the ASDK, Enterprise Agreement (EA), pay-as-you-go, CSP, and MSDN subscriptions support usage data reporting.

使用情況資料回報在主權雲端中是否能運作?Does usage data reporting work in sovereign clouds?

在 ASDK 中,使用情況資料回報需要在全球 Azure 系統中建立的訂用帳戶。In the ASDK, usage data reporting requires subscriptions that are created in the global Azure system. 在其中一個主權雲端 (Azure Government、Azure 德國與 Azure 中國 21Vianet 雲端) 中建立的訂用帳戶無法向 Azure 註冊,因此其不支援使用量資料報告。Subscriptions created in one of the sovereign clouds (the Azure Government, Azure Germany, and Azure China 21Vianet clouds) can't be registered with Azure, so they don't support usage data reporting.

為何在 Azure Stack Hub 中回報的使用情況與從 Azure 帳戶中心產生的報告不符?Why doesn't the usage reported in Azure Stack Hub match the report generated from Azure Account Center?

在 Azure Stack Hub 使用量 API 所回報的使用量資料與 Azure 帳戶中心所回報的使用量資料之間一定會有延遲。There's always a delay between the usage data reported by the Azure Stack Hub usage APIs and the usage data reported in the Azure Account Center. 此延遲是將使用量資料從 Azure Stack Hub 上傳到 Azure 商務系統所需的時間。This delay is the time required to upload usage data from Azure Stack Hub to Azure commerce. 由於此延遲,在午夜前短暫發生的使用情況可能會在隔天顯示在 Azure 中。Because of this delay, usage that occurs shortly before midnight might appear in Azure the following day. 若使用 Azure Stack Hub 使用情況 API,並將結果與在 Azure 計費入口網站中回報的使用情況比較,您可以看到差異。If you use the Azure Stack Hub usage APIs and compare the results to the usage reported in the Azure billing portal, you can see a difference.

後續步驟Next steps