在 Azure Stack Hub 中创建套餐Create an offer in Azure Stack Hub

套餐是提供者提供给用户购买或订阅的一个或多个计划的组合。Offers are groups of one or more plans that providers present to users, which those users can buy or subscribe to. 本文介绍如何创建包含创建的计划的套餐。This article describes how to create an offer that includes the plan that you created. 订阅方可以使用此套餐设置虚拟机 (VM)。This offer gives subscribers the ability to set up virtual machines (VMs).

创建套餐(1902 和更高版本)Create an offer (1902 and later)

  1. 登录到 Azure Stack Hub 管理员门户https://adminportal.local.azurestack.external,依次选择“+ 创建资源”、“套餐 + 计划”、“套餐”**** **** ****。Sign in to the Azure Stack Hub administrator portal https://adminportal.local.azurestack.external and select + Create a resource, then Offers + Plans, and then Offer.

    此屏幕截图显示了如何在 Azure Stack Hub 中创建套餐。

  2. 此时将显示一个选项卡式用户界面,你可以在其中定义套餐名称。A tabbed user interface appears that enables you to define the offer name. 还可以添加现有计划或创建新的基本计划和附加计划。You can also add existing or create new base plans and add-on plans. 最重要的是,在决定创建套餐之前,可以先查看其详细信息。Most importantly, you can review the details of the offer you create before you decide to create it.

    在“基本信息”选项卡中,输入“显示名称”和“资源名称”,然后在“资源组”下选择“新建”或“使用现有项”。**** **** **** **** **** ****In the Basics tab, enter a Display Name and a Resource Name, and then under Resource Group, select Create new or Use existing. 显示名称是套餐的易记名称。The display name is the friendly name for the offer. 此易记名称是用户在用户门户中订阅套餐时可看到的有关该套餐的唯一信息。This friendly name is the only information about the offer that users see when they subscribe to an offer in the user portal. 请使用直观名称,以帮助用户了解该套餐附带了什么功能。Use an intuitive name that helps users understand what comes with the offer. 只有管理员可以看到资源名称。Only the admin can see the resource name. 管理员使用此名称将该产品/服务作为 Azure 资源管理器资源处理。It's the name that admins use to work with the offer as an Azure Resource Manager resource. 在此选项卡中,还可以选择将此套餐设置为公开或私密。In this tab, you can also choose to make this offer public or keep it private. 默认设置是私密。The default setting is private. 随时可以更改套餐的公开或私密状态You can change the public or private state of the offer at any time.

    此屏幕截图显示了在 Azure Stack Hub 中的何处添加有关新套餐的基本信息。

  3. 选择“基本计划”**** 选项卡或单击“下一步:**** 基本计划 >”按钮。Select the Base plans tab or click the Next : Base plans > button. 选择要包含在套餐中的计划。Select the plan(s) you want to include in the offer.

    此屏幕截图显示了如何选择要包含在 Azure Stack Hub 套餐中的计划。

  4. 此时,可以创建附加计划来修改基本计划,但此操作是可选的。At this point you can create an add-on plan to modify the base plan, but this is optional. 在下一篇文章 Azure Stack Hub 附加计划中,你将有机会创建附加计划。You have the opportunity to create an add-on plan in the next article, Azure Stack Hub add-on plans.

  5. 选择“查看 + 创建”选项卡。**** 查看套餐摘要,确保所有值正确。Select the Review + create tab. Review the offer summary to ensure that all values are correct. 在界面中可以逐个展开所选计划中的配额,以查看计划中每个配额的详细信息。The interface enables you to expand the quotas in the chosen plans one at a time to view the details of each quota in a plan. 你也可以返回进行任何必要的编辑。You can also go back to make any necessary edits.

  6. 选择“创建”以创建套餐。****Select Create to create the offer.

    在 Azure Stack Hub 中查看和创建套餐

更改套餐的状态Change the state of an offer

创建套餐后,可以更改其状态。After creating the offer, you can change its state. 必须将套餐设为“公共”,用户才能在订阅时获得完整视图。****Offers must be made Public for users to get the full view when they subscribe. 产品/服务可以是:Offers can be:

  • 公共:对用户可见。Public: Visible to users.

  • 专用:仅对云管理员可见。Private: Only visible to cloud administrators. 起草计划或套餐时,或者当云管理员想要为用户创建每个订阅时,此设置非常有用。This setting is useful while drafting the plan or offer, or if the cloud administrator wants to create each subscription for users.

  • 已解除授权:已对新订阅方关闭。Decommissioned: Closed to new subscribers. 云管理员可以解除套餐的授权来防止将来订阅,但不影响当前订阅方。The cloud administrator can decommission offers to prevent future subscriptions, but leave current subscribers unaffected.

    提示

    套餐的更改不会对用户立即可见。Changes to the offer aren't immediately visible to the user. 若要查看所做的更改,用户可能需要先注销,然后重新登录到用户门户,这样才能看到新的套餐。To see the changes, users might have to sign out and sign in again to the user portal to see the new offer.

可通过两种方式更改套餐的状态:There are two ways to change the state of an offer:

  1. 在“所有资源”中选择套餐的名称。****In All resources, select the name of the offer. 在该套餐的“概述”屏幕上,选择“更改状态”。**** ****On the Overview screen for the offer, select Change state. 选择要使用的状态(例如“公开”)。****Choose the state you want to use (for example, Public).

    此屏幕截图显示了如何更改 Azure Stack Hub 套餐的状态。

  2. 选择“套餐设置”。****Select Offer settings. 选择要使用的状态(例如“公开”),然后选择“保存”。**** ****Choose the state you want to use (for example, Public), then select Save.

    Azure Stack Hub 套餐设置

创建套餐(1901 和更低版本)Create an offer (1901 and earlier)

  1. 登录到 Azure Stack Hub 管理员门户https://adminportal.local.azurestack.external,依次选择“+ 创建资源”、“租户套餐 + 计划”、“套餐”**** **** ****。Sign in to the Azure Stack Hub administrator portal https://adminportal.local.azurestack.external and select + Create a resource, then Tenant Offers + Plans, and then Offer.

    此屏幕截图显示了如何创建套餐。

  2. 在“新建套餐”下,输入“显示名称”和“资源名称”,然后在“资源组”下选择“新建”或“使用现有项”。**** **** **** **** **** ****Under New Offer, enter a Display Name and a Resource Name, and then under Resource Group, select Create new or Use existing. 显示名称是套餐的易记名称。The display name is the friendly name for the offer. 此易记名称是用户在订阅套餐时可看到的有关该套餐的唯一信息。This friendly name is the only information about the offer that users see when they subscribe to an offer. 请使用直观名称,以帮助用户了解该套餐附带了什么功能。Use an intuitive name that helps users understand what comes with the offer. 只有管理员可以看到资源名称。Only the admin can see the resource name. 管理员使用此名称将该产品/服务作为 Azure 资源管理器资源处理。It's the name that admins use to work with the offer as an Azure Resource Manager resource.

    此屏幕截图显示了如何在 Azure Stack Hub 中为新套餐创建资源。

  3. 选择“基本计划”打开“计划”。**** ****Select Base plans to open the Plan. 选择要包含在套餐中的计划,然后选择“选择”。****Select the plans you want to include in the offer, and then choose Select. 若要创建套餐,请选择“创建”。****To create the offer, select Create.

    此屏幕截图显示了如何选择要包含在 Azure Stack Hub 套餐中的计划。

  4. 创建套餐后,可以更改其状态。After creating the offer, you can change its state. 必须将套餐设为“公共”,用户才能在订阅时获得完整视图。****Offers must be made Public for users to get the full view when they subscribe. 产品/服务可以是:Offers can be:

    • 公共:对用户可见。Public: Visible to users.
    • 专用:仅对云管理员可见。Private: Only visible to cloud administrators. 起草计划或套餐时,或者当云管理员想要为用户创建每个订阅时,此设置非常有用。This setting is useful while drafting the plan or offer, or if the cloud administrator wants to create each subscription for users.
    • 已解除授权:已对新订阅方关闭。Decommissioned: Closed to new subscribers. 云管理员可以解除套餐的授权来防止将来订阅,但不影响当前订阅方。The cloud administrator can decommission offers to prevent future subscriptions, but leave current subscribers unaffected.

    提示

    套餐的更改不会对用户立即可见。Changes to the offer aren't immediately visible to the user. 若要查看所做的更改,用户可能需要先注销,然后重新登录到用户门户,这样才能看到新的套餐。To see the changes, users might have to sign out and sign in again to the user portal to see the new offer.

    在套餐的概览屏幕上,选择“辅助功能状态”。****On the overview screen for the offer, select Accessibility state. 选择要使用的状态(例如“公共”),然后选择“保存”。**** ****Choose the state you want to use (for example, Public), and then select Save.

    此屏幕截图显示了在何处更改 Azure Stack Hub 套餐的状态。

    或者,选择“更改状态”****,然后选择状态。As an alternative, select Change state and then choose a state.

    为 Azure Stack Hub 套餐选择可访问性状态

备注

还可以使用 PowerShell 来创建默认套餐、计划和配额。You can also use PowerShell to create default offers, plans, and quotas. 有关详细信息,请参阅 Azure Stack Hub PowerShell 模块 1.4.0For more information, see Azure Stack Hub PowerShell Module 1.4.0.

后续步骤Next steps