Azure Stack 中心中的使用情况和计费Usage and billing in Azure Stack Hub

本文介绍了如何为资源使用情况计费 Azure Stack 集线器用户,以及如何访问计费信息进行分析和计费。This article describes how Azure Stack Hub users are billed for resource usage, and how the billing information is accessed for analytics and chargeback.

Azure Stack 中心收集使用的资源的使用数据并对其进行分组,然后将此数据转发到 Azure Commerce。Azure Stack Hub collects and groups usage data for resources that are used, then forwards this data to Azure Commerce. Azure Commerce 为你提供 Azure Stack 集线器使用方式,就像对 Azure 使用计费一样。Azure Commerce bills you for Azure Stack Hub usage in the same way it bills you for Azure usage.

你还可以获取使用情况数据,并使用计费适配器将其导出到你自己的计费或使用计费系统,或将其导出到 Microsoft Power BI 等商业智能工具。You can also get usage data and export it to your own billing or chargeback system by using a billing adapter, or export it to a business intelligence tool such as Microsoft Power BI.

使用管道Usage pipeline

Azure Stack 集线器中的每个资源提供程序都按资源使用情况发布使用数据。Each resource provider in Azure Stack Hub posts usage data per resource usage. 使用情况服务定期(每小时和每天)聚合使用情况数据并将其存储在使用情况数据库中。The usage service periodically (hourly and daily) aggregates usage data and stores it in the usage database. Azure Stack 中心操作员和用户可以通过 Azure Stack 中心资源使用情况 Api 访问存储的使用情况数据。Azure Stack Hub operators and users can access the stored usage data through the Azure Stack Hub resource usage APIs.

如果已向azure 注册 Azure Stack 集线器实例,Azure Stack 中心将配置为将使用情况数据发送到 azure Commerce。If you've registered your Azure Stack Hub instance with Azure, Azure Stack Hub is configured to send the usage data to Azure Commerce. 将数据上传到 Azure 后,可以通过计费门户或使用 Azure 资源使用情况 Api 来访问数据。After the data is uploaded to Azure, you can access it through the billing portal or by using Azure resource usage APIs. 有关向 Azure 报告的使用情况数据的详细信息,请参阅使用情况数据报告For more information about what usage data is reported to Azure, see Usage data reporting.

下图显示了使用情况管道中的关键组件:The following image shows the key components in the usage pipeline:

使用管道

我可以找到哪些使用情况信息以及如何操作?What usage information can I find, and how?

Azure Stack 中心资源提供程序(例如计算、存储和网络)每个订阅按小时为间隔生成使用情况数据。Azure Stack Hub resource providers (such as Compute, Storage, and Network) generate usage data at hourly intervals for each subscription. 使用情况数据包含有关使用的资源的信息,例如资源名称、所用订阅和使用的数量。The usage data contains information about the resource used, such as resource name, subscription used, and quantity used. 若要了解有关计量的 ID 资源,请参阅使用情况 API 常见问题解答To learn about the meters' ID resources, see the Usage API FAQ.

收集使用情况数据后,会将其报告给 Azure以生成帐单,这可以通过 Azure 计费门户查看。After the usage data has been collected, it is reported to Azure to generate a bill, which can be viewed through the Azure billing portal.

备注

对于 Azure Stack 开发工具包(ASDK)以及在容量模型下许可的 Azure Stack 中心集成系统用户,不需要使用数据报告。Usage data reporting is not required for the Azure Stack Development Kit (ASDK) and for Azure Stack Hub integrated system users who license under the capacity model. 若要详细了解 Azure Stack 中心中的许可,请参阅打包和定价数据表To learn more about licensing in Azure Stack Hub, see the packaging and pricing data sheet.

Azure 计费门户显示了应计费资源的使用情况数据。The Azure billing portal shows usage data for the chargeable resources. 除了计费资源外,Azure Stack 中心还会捕获更广泛资源的使用情况数据,可通过 REST Api 或 PowerShell cmdlet 在 Azure Stack 中心环境中访问这些资源。In addition to the chargeable resources, Azure Stack Hub captures usage data for a broader set of resources, which you can access in your Azure Stack Hub environment through REST APIs or PowerShell cmdlets. Azure Stack 中心操作员可以获取所有用户订阅的使用情况数据。Azure Stack Hub operators can get the usage data for all user subscriptions. 单个用户只能获取其自己的使用情况详细信息。Individual users can only get their own usage details.

多租户云解决方案提供商的使用情况报告Usage reporting for multi-tenant Cloud Solution Providers

使用 Azure Stack 集线器的多租户云解决方案提供程序(CSP)可能需要单独报告每个客户的使用情况,以便提供商可以将使用情况计费到不同的 Azure 订阅。A multi-tenant Cloud Solution Provider (CSP) using Azure Stack Hub might want to report each customer usage separately, so that the provider can charge usage to different Azure subscriptions.

每个客户都有不同 Azure Active Directory (Azure AD)租户表示的标识。Each customer has their identity represented by a different Azure Active Directory (Azure AD) tenant. Azure Stack 中心支持为每个 Azure AD 租户分配一个 CSP 订阅。Azure Stack Hub supports assigning one CSP subscription to each Azure AD tenant. 可以将租户及其订阅添加到基本 Azure Stack 中心注册。You can add tenants and their subscriptions to the base Azure Stack Hub registration. 基本注册针对所有 Azure Stack 中心实例完成。The base registration is done for all Azure Stack Hub instances. 如果订阅未注册到租户,用户仍可使用 Azure Stack 中心,并将其使用情况发送到用于基本注册的订阅。If a subscription is not registered for a tenant, the user can still use Azure Stack Hub, and their usage is sent to the subscription used for the base registration.

后续步骤Next steps