管理充当云解决方案提供商的 Azure Stack Hub 的使用情况和计费Manage usage and billing for Azure Stack Hub as a Cloud Solution Provider

本文介绍如何将 Azure Stack Hub 注册为云解决方案提供商 (CSP) 以及如何添加客户。This article describes how to register Azure Stack Hub as a Cloud Solution Provider (CSP) and how to add customers.

作为 CSP,你将与使用 Azure Stack Hub 的各种客户协作。As a CSP, you work with diverse customers using your Azure Stack Hub. 每个客户在 Azure 中都有一个 CSP 订阅。Each customer has a CSP subscription in Azure. 必须将使用情况从 Azure Stack Hub 定向到每个用户订阅。You must direct usage from your Azure Stack Hub to each user subscription.

下图展示了必须执行哪些步骤,以便选择共享服务帐户并将 Azure 帐户注册到 Azure Stack Hub 帐户。The following figure shows the required steps to choose your shared services account, and to register the Azure account with the Azure Stack Hub account. 注册后,即可载入最终客户:Once registered, you can onboard your end customers:

以云解决方案提供商身份启用使用情况跟踪和管理功能的过程Process for enabling usage and management as a Cloud Solution Provider

创建 CSP 或 APSS 订阅Create a CSP or APSS subscription

CSP 订阅类型CSP subscription types

选择用于 Azure Stack Hub 的共享服务帐户的类型。Choose the type of shared services account that you use for Azure Stack Hub. 可以用来注册多租户 Azure Stack Hub 的订阅类型为:The types of subscriptions that can be used for registration of a multi-tenant Azure Stack Hub are:

  • 云解决方案提供商Cloud Solution Provider
  • 合作伙伴共享服务订阅Partner Shared Services subscription

Azure 合作伙伴共享服务Azure Partner Shared Services

直接 CSP 或 CSP 经销商运营 Azure Stack Hub 时,应首选使用 Azure 合作伙伴共享服务 (APSS) 订阅进行注册。Azure Partner Shared Services (APSS) subscriptions are the preferred choice for registration when a direct CSP or a CSP distributor operates Azure Stack Hub.

APSS 订阅与共享服务租户相关联。APSS subscriptions are associated with a shared-services tenant. 注册 Azure Stack Hub 时,请提供帐户的凭据,该帐户是订阅的所有者。When you register Azure Stack Hub, you provide credentials for an account that's an owner of the subscription. 用于注册 Azure Stack Hub 的帐户可以不同于用于部署的管理员帐户。The account you use to register Azure Stack Hub can be different from the admin account that you use for deployment. 而且,这两个帐户不需要属于同一个域;可以通过已使用的租户进行部署。Furthermore, the two accounts do not need to belong to the same domain; you can deploy using the tenant that you already use. 例如,可以使用 ContosoCSP.partner.onmschina.cn 进行部署,然后使用另一租户(例如 IURContosoCSP.partner.onmschina.cn)进行注册。For example, you can use ContosoCSP.partner.onmschina.cn, then register using a different tenant; for example, IURContosoCSP.partner.onmschina.cn. 进行每日的 Azure Stack Hub 管理时,必须记住使用 ContosoCSP.partner.onmschina.cn 登录。You must remember to sign in using ContosoCSP.partner.onmschina.cn when you perform daily Azure Stack Hub administration. 需要执行注册操作时,请使用 IURContosoCSP.partner.onmschina.cn 登录到 Azure。You sign in to Azure using IURContosoCSP.partner.onmschina.cn when you need to perform registration operations.

有关 APSS 订阅及其创建方法的说明,请参阅添加 Azure 合作伙伴共享服务For a description of APSS subscriptions and how to create them, see Add Azure Partner Shared Services.

CSP 订阅CSP subscriptions

在 CSP 经销商或最终客户运营 Azure Stack Hub 时,应首选 CSP 订阅进行注册。CSP subscriptions are the preferred choice for registration when a CSP reseller or an end customer operates Azure Stack Hub.

注册 Azure Stack HubRegister Azure Stack Hub

使用根据前一部分中的信息创建的 APSS 订阅向 Azure 注册 Azure Stack Hub。Use the APSS subscription created using the information in the preceding section to register Azure Stack Hub with Azure. 有关详细信息,请参阅将 Azure Stack Hub 注册到 Azure 订阅For more information, see Register Azure Stack Hub with your Azure Subscription.

添加最终客户Add end customer

若要配置 Azure Stack Hub,以便将新租户的资源使用情况报告给其 CSP 订阅,请参阅将租户添加到 Azure Stack Hub 以获取使用情况和计费信息To configure Azure Stack Hub so that a new tenant's resource usage is reported to their CSP subscription, see Add tenant for usage and billing to Azure Stack Hub.

对正确的订阅收费Charge the right subscriptions

Azure Stack Hub 使用名为“注册” 的功能。Azure Stack Hub uses a feature called registration. 注册是一个存储在 Azure 中的对象。A registration is an object stored in Azure. 注册对象用于记录哪个或哪些 Azure 订阅用来对给定的 Azure Stack Hub 收费。The registration object documents which Azure subscription(s) to use to charge for a given Azure Stack Hub. 本部分讲述注册的重要性。This section addresses the importance of registration.

通过注册,Azure Stack Hub 可以执行以下操作:Using registration, Azure Stack Hub can:

  • Azure Stack Hub 使用情况数据转发到 Azure Commerce,并对 Azure 订阅计费。Forward Azure Stack Hub usage data to Azure Commerce and bill an Azure subscription.
  • 使用多租户 Azure Stack Hub 部署报告每个客户在不同订阅上的使用情况。Report each customer's usage on a different subscription with a multi-tenant Azure Stack Hub deployment. 使用多租户时,Azure Stack Hub 可以在同一 Azure Stack Hub 实例上支持不同的组织。Multi-tenancy enables Azure Stack Hub to support different organizations on the same Azure Stack Hub instance.

每个 Azure Stack Hub 都有一个默认的订阅和许多租户订阅。For each Azure Stack Hub, there is one default subscription and many tenant subscriptions. 默认订阅为 Azure 订阅。在没有特定于租户的订阅时,会对该 Azure 订阅收费。The default subscription is an Azure subscription that is charged if there's no tenant-specific subscription. 它必须是要注册的第一个订阅。It must be the first subscription to be registered. 若要使用多租户使用情况报告,订阅必须是 CSP 或 APSS 订阅。For multi-tenant usage reporting to work, the subscription must be a CSP or APSS subscription.

然后,对于每个使用 Azure Stack Hub 的租户,使用 Azure 订阅对注册进行更新。Then, the registration is updated with an Azure subscription for each tenant that uses Azure Stack Hub. 租户订阅必须是 CSP 类型,并且必须汇总到拥有默认订阅的合作伙伴处。Tenant subscriptions must be of the CSP type, and must roll up to the partner who owns the default subscription. 无法注册其他人的客户。You cannot register someone else's customers.

当 Azure Stack Hub 将使用情况信息转发到全球版 Azure 时,Azure 中的一项服务会查阅该注册,并将每个租户的使用情况映射到相应的租户订阅。When Azure Stack Hub forwards usage info to global Azure, a service in Azure consults the registration and maps each tenant's usage to the appropriate tenant subscription. 如果租户尚未注册,则该使用情况会转发到租户源自的 Azure Stack Hub 实例的默认订阅。If a tenant has not been registered, that usage goes to the default subscription for the Azure Stack Hub instance from which it originated.

由于租户订阅是 CSP 订阅,其账单将发送至 CSP 合作伙伴,并且使用情况信息对最终客户不可见。Because tenant subscriptions are CSP subscriptions, their bill is sent to the CSP partner, and usage info is not visible to the end customer.

后续步骤Next steps