在 Azure Stack 中创建套餐的订阅Create subscriptions to offers in Azure Stack

适用于:Azure Stack 集成系统和 Azure Stack 开发工具包Applies to: Azure Stack integrated systems and Azure Stack Development Kit

创建某个套餐后,用户需要订阅此套餐才能使用此套餐。After you create an offer, users need a subscription to that offer before they can use it. 用户订阅套餐有两种方式:There are two ways that users can get subscribed to an offer:

  • 在管理员门户中以云操作员身份为用户创建订阅。As a cloud operator, you can create a subscription for a user from within the administrator portal. 创建的订阅可用于公共和专用套餐。Subscriptions you create can be for both public and private offers.
  • 租户用户可以在使用用户门户时订阅公共套餐。As a tenant user, you can subscribe to a public offer when you use the user portal.

以云操作员的身份创建订阅Create a subscription as a cloud operator

云操作员使用管理员门户为用户创建套餐订阅。Cloud operators use the administrator portal to create a subscription to an offer for a user. 你可以为自己的目录租户成员创建订阅。Subscriptions can be created for members of your own directory tenant. 如果已启用多租户,则还可以为其他目录租户中的用户创建订阅。When multi-tenancy is enabled, you can also create subscriptions for users in additional directory tenants.

如果不希望租户创建他们自己的订阅,请将所有套餐设置为私有,然后为租户创建订阅。If don't want your tenants to create their own subscriptions, make your offers private, and then create subscriptions for your tenants. 将 Azure Stack 与外部计帐系统或服务目录系统集成时,通常会使用此方法。This approach is common when integrating Azure Stack with external billing or service catalog systems.

为某个用户创建订阅后,该用户可以登录到用户门户,然后会发现他(她)已订阅套餐。After you create a subscription for a user, they can sign in to the user portal and see that they're subscribed to the offer.

为用户创建订阅To create a subscription for a user

  1. 在管理门户中,转到“用户订阅”。 In the Admin portal, go to User subscriptions.

  2. 选择“设置” (应用程序对象和服务主体对象)。Select Add. 在“新建用户订阅”下,输入以下信息: Under New user subscription, enter the following information:

    • 显示名称 – 用于标识订阅的友好名称,显示为“用户订阅名称”。 Display name - A friendly name for identifying the subscription that appears as the User subscription name.

    • 用户 – 从此订阅的可用目录租户中指定一个用户。User - Specify a user from an available directory tenant for this subscription. 用户名显示为“所有者”。 The user name appears as Owner. 用户名的格式取决于标识解决方案。The format of the user name depends on your identity solution. 例如:For example:

      • Azure AD: <user1>@<contoso.partner.onmschina.cn>Azure AD: <user1>@<contoso.partner.onmschina.cn>

      • AD FS: <user1>@<azurestack.local>AD FS: <user1>@<azurestack.local>

    • 目录租户 – 选择用户帐户所属的目录租户。Directory tenant - Select the directory tenant where the user account belongs. 如果未启用多租户,则只能使用本地目录租户。If you haven't enabled multi-tenancy, only your local directory tenant is available.

  3. 选择“套餐”。 Select Offer. 在“套餐”下,选择此订阅的套餐Under Offers, choose an Offer for this subscription. 由于要为用户创建订阅,因此请选择“私有”作为可访问性状态。 Because you're creating the subscription for a user, select Private as the accessibility state.

  4. 选择“创建”以创建订阅。 Select Create to create the subscription. “用户订阅”下面会显示新订阅。 The new subscription appears under User subscription. 用户在登录到用户门户后可以看到订阅详细信息。When the user signs in to the user portal, they can see the subscription details.

提供附加计划To make an add-on plan available

云操作员随时可将计划添加到以前创建的订阅:A cloud operator can add a plan to a previously created subscription at any time:

  1. 在管理门户中,选择“所有服务” ,然后在“管理资源” 类别下,选择“用户订阅” 。In the admin portal, select All Services and then under the ADMINISTRATIVE RESOURCES category, select User subscriptions. 选择想要更改的订阅。Select the subscription you want to change.

  2. 依次选择“附加计划”、“+添加”。 Select Add-ons and then select +Add.

  3. 在“添加计划”下,选择要添加为附加计划的计划。 Under Add plan, select the plan you want as an add-on.

以用户的身份创建订阅Create a subscription as a user

以用户身份登录到用户门户,查找并订阅目录租户(组织)的公共套餐和附加计划。As a user, you can sign in to the user portal to locate and subscribe to public offers and add-on plans for your directory tenant (organization).

Note

如果 Azure Stack 环境支持多租户,则也可以从远程目录租户订阅套餐。If your Azure Stack environment supports multi-tenancy, you can also subscribe to offers from a remote directory tenant.

订阅套餐To subscribe to an offer

  1. 登录Azure Stack 用户门户,选择“获取订阅”。 Sign in to the Azure Stack user portal and select Get a Subscription.

    获取订阅

  2. 在“获取订阅”下的“显示名称”中输入订阅的友好名称。 Under Get a subscription, enter the friendly name of the subscription in Display Name. 选择“套餐”,然后在“选择套餐”下选择套餐。 Select Offer and under Choose an offer, pick an offer. 选择“创建”以创建订阅。 Select Create to create the subscription.

    创建产品

  3. 订阅套餐之后,请刷新门户以查看哪些服务是新订阅的一部分。After you subscribe to an offer, refresh the portal to see which services are part of the new subscription.

  4. 若要查看创建的订阅,请选择“所有服务” ,然后在“常规” 类别下选择“订阅” 。To see the subscription you created, select All services and then under the GENERAL category select Subscriptions. 选择订阅以查看其详细信息。Select the subscription to see the subscription details.

在订阅中启用附加计划To enable an add-on plan in your subscription

如果你订阅的套餐包含附加计划,则可以随时将该计划添加到你的订阅中。If the offer you subscribe to has an add-on plan, you can add that plan to your subscription at any time.

  1. 在用户门户中,选择“所有服务”。 In the user portal, select All services. 接下来,在“常规” 类别下选择“订阅” ,然后选择要更改的订阅。Next, under the GENERAL category, select Subscriptions, and then select the subscription that you want change. 如果有可用的附加计划,则“+ 添加计划”将处于活动状态,并显示“附加计划”的磁贴。 If there are add-on plans available, + Add plan is active and shows a tile for Add-on plans.

    如果“+ 添加计划”未处于活动状态,则表示与该订阅关联的套餐没有附加计划。 If + Add plan is not active, then there are no add-on plans for the offer associated with that subscription.

  2. 选择“+ 添加计划”或“附加计划”磁贴。 Select + Add plan or the Add-on plans tile. 在“附加计划”下,选择想要添加的计划。 Under Add-on plans, select the plan you want to add.

后续步骤Next steps

详细了解用户现在如何将资源部署到其订阅:Learn more about how a user can now deploy resources into their subscription:

  • 几个用户快速入门演示如何使用 PowerShell、Azure CLI 和用户门户预配 Windows 和 Linux 虚拟机。Several user quickstarts show how to provision Windows and Linux virtual machines using PowerShell, Azure CLI, and the user portal.