使用 Azure Stack Hub 门户部署模板Deploy a template using the portal in Azure Stack Hub

可以使用 Azure Stack Hub 用户门户将 Azure 资源管理器模板部署到 Azure Stack Hub。You can use the Azure Stack Hub user portal to deploy Azure Resource Manager templates to Azure Stack Hub.

部署模板To deploy a template

  1. 登录到 Azure Stack Hub 用户门户,选择“+ 创建资源” > “自定义” > “模板部署” 。Sign in to the Azure Stack Hub user portal, select + Create a resource > Custom > Template deployment.

    在 Azure Stack Hub 门户中创建资源

  2. 可以选择“键入以开始筛选”以选择 GitHub 快速启动模板,或选择“在编辑器中生成自己的模板” 。You can either select Type to start filter to choose a GitHub quickstart template, or choose Build your own template in the editor.

    在 Azure Stack Hub 门户中部署模板

    AzureStack-QuickStart-Templates 由 Azure Stack Hub 社区的成员创建,而不由我们创建。AzureStack-QuickStart-Templates are created by a member of the Azure Stack Hub community and not by us. 每个模板均按照其所有者而非我们的许可协议授权给你。Each template is licensed to you under a license agreement by its owner, not us. 我们不对这些模板负责,也不检查其安全性、合规性或性能。We are not responsible for these templates and does not screen for security, compatibility, or performance. 社区模板不受任何 Azure 支持计划或服务的支持,按“原样”提供,且没有任何形式的保证。Community templates are not supported under any Azure support program or service, and are made available as is without warranty of any kind.

  3. 如果选择了“在编辑器中生成自己的模板”,请将 JSON 模板代码粘贴到代码窗口中。If you selected Build your own template in the editor, paste your JSON template code into the code window.

    在 Azure Stack Hub 门户中编辑模板

    • 选择“快速启动模板”,在编辑器中加载社区模板。Select Quickstart template to load a community template in the editor.

    • 选择“加载文件”,将 Azure 资源管理器模板从本地计算机加载到编辑器中。Select Load file to load an Azure Resource Manager template from your local machine into the editor.

    • 选择“下载”,将 Azure 资源管理器模板保存到本地计算机。Select Download to save the Azure Resource Manager template to your local machine.

    对模板进行更改后,选择“保存”。When you are done making changes to your template, select Save.

  4. 选择“订阅”。Select Subscription. 选择要使用的订阅。Choose the subscription you want to use. 选择“资源组”。Select Resource group. 可以选择现有资源组,或创建新资源组,然后选择“确定”。You can choose an existing resource group or create a new one, and then select OK. 然后选择“查看 + 创建”。And then select Review + create.

    在 Azure Stack Hub 门户中编辑参数

  5. 选择“创建”。Select Create.

    在 Azure Stack Hub 门户中选择订阅

  6. 仪表板上的新磁贴会跟踪模板部署的进度。A new tile on the dashboard tracks the progress of your template deployment.

    在 Azure Stack Hub 门户中选择资源组

    可使用 Azure 资源管理器 模板通过单个协调操作部署和预配应用程序的所有资源。You can use Azure Resource Manager templates to deploy and provision all the resources for your application in a single, coordinated operation. 还可以重新部署模板,对资源组中的资源进行更改。You can also redeploy templates to make changes to the resources in a resource group. 有关将模板用于 Azure Stack Hub 的详细信息,请参阅在 Azure Stack Hub 中使用 Azure 资源管理器模板for more information on using templates with Azure Stack Hub, see Use Azure Resource Manager templates in Azure Stack Hub.

后续步骤Next steps

若要了解有关部署模板的详细信息,请参阅以下文章:To learn more about deploying templates, see the following article: