教程:在 Azure Stack Hub 中创建和测试订阅Tutorial: Create and test a subscription in Azure Stack Hub

本教程介绍如何创建包含套餐的订阅,然后如何对其进行测试。This tutorial shows how to create a subscription containing an offer and then how to test it. 测试时,需要以云管理员身份登录到 Azure Stack Hub 用户门户,订阅套餐,然后创建虚拟机 (VM)。For the test, you sign in to the Azure Stack Hub user portal as a cloud admin, subscribe to the offer, and then create a virtual machine (VM).

提示

若要获得更高级的评估体验,可为特定用户创建订阅,然后在用户门户中以该用户的身份登录。For more a more advanced evaluation experience, you can create a subscription for a particular user and then sign in as that user in the user portal.

本教程介绍如何订阅 Azure Stack Hub 套餐。This tutorial shows how to subscribe to an Azure Stack Hub offer.

学习内容:What you'll learn:

  • 订阅产品Subscribe to an offer
  • 测试产品/服务Test the offer

订阅产品Subscribe to an offer

若要以用户身份订阅套餐,请登录 Azure Stack Hub 用户门户以查看 Azure Stack Hub 运营商提供的可用服务。To subscribe to an offer as a user, sign in to the Azure Stack Hub user portal to check the available services offered by the Azure Stack Hub operator.

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

    获取订阅

  2. 在“显示名称”字段中,键入订阅的名称。In the Display Name field, type a name for your subscription. 然后选择“套餐”,在“选择套餐”部分选择某个可用套餐。 Then select Offer to choose one of the available offers in the Choose an offer section. 然后选择“创建”。Then select Create.

    创建产品

    提示

    刷新用户门户以开始使用该订阅。Refresh the user portal to start using your subscription.

  3. 若要查看已创建的订阅,请选择“所有服务”。To view the subscription you created, select All services. 然后,在“常规”类别下选择“订阅”,然后选择新订阅。Then, under the GENERAL category select Subscriptions, and then select your new subscription. 订阅套餐之后,请刷新门户,以查看新服务是否已包含为新订阅的一部分。After you subscribe to an offer, refresh the portal to see if new services have been included as part of the new subscription. 在本示例中,我们已添加虚拟机In this example, Virtual machines has been added.

    查看订阅

测试产品/服务Test the offer

登录到用户门户后,可以使用新订阅功能预配 VM,以测试套餐。While signed in to the user portal, test the offer by provisioning a VM using the new subscription capabilities.

备注

此项测试需要先将 Windows Server 2016 Datacenter VM 添加到 Azure Stack Hub 市场。This test requires that a Windows Server 2016 Datacenter VM first be added to the Azure Stack Hub Marketplace.

  1. 登录到用户门户。Sign in to the user portal.

  2. 在用户门户中,依次选择“虚拟机”、“添加”、“Windows Server 2016 Datacenter”和“创建”。 In the user portal, select Virtual Machines, then Add, then Windows Server 2016 Datacenter, and then select Create.

  3. 在“基本信息”部分,输入“名称”、“用户名”和“密码”,选择“订阅”,创建一个资源组,然后选择“确定”。 In the Basics section, type a Name, User name, and Password, choose a Subscription, create a Resource group (or select an existing one), and then select OK.

  4. 在“选择大小”部分中选择“A1 标准”,然后选择“选择”。 In the Choose a size section, select A1 Standard, and then choose Select.

  5. 在“设置”边栏选项卡中接受默认值,然后选择“确定”。 In the Settings blade, accept the defaults and select OK.

  6. 在“摘要”部分中,选择“确定”以创建该 VM。 In the Summary section, select OK to create the VM.

  7. 若要查看新 VM,请选择“虚拟机”,然后搜索新 VM 并选择其名称。To see your new VM, select Virtual machines, then search for the new VM, and select its name.

    所有资源

备注

VM 部署需要几分钟时间才能完成。The VM deployment takes a few minutes to complete.

后续步骤Next steps