使用 Azure 门户为云服务生成 ARM 模板(扩展支持)

本文介绍如何从云服务的 Azure 门户下载 ARM 模板和参数文件。 可以通过 PowerShell 在部署中使用 ARM 模板和参数文件来创建或更新云服务

通过门户获取 ARM 模板

  1. 转到 Azure 门户并创建新的云服务。 添加云服务配置、包和定义文件。 Image shows the upload section of the basics tab during creation.

  2. 完成所有字段后,转到“审阅并创建”选项卡以验证部署配置,然后单击“下载自动化模板”以创建云服务(外延支持)。 Image shows downloading the template under cloud service (extended support) on the Azure portal.

  3. 下载模板和参数文件。 Image shows downloading template file on the Azure portal.

  4. 从“审阅并创建”选项卡复制“包 SAS URI”和“配置 SAS URI”,并将其添加到 parameter.json 文件。 现在,可以使用这些文件通过 PowerShell 创建新的云服务。 Image shows the package SAS URI and configuration SAS URI parameters on the Azure portal.

后续步骤