适用于 Visual Studio 2022 的其他 Azure 资源管理器模板

问题描述 投票:0回答:1

我刚刚在 Visual Studio 2022 中创建了一个新的空白“Azure 资源组”- 项目。 是否有任何选项可以将其他资源添加到此列表(见下图)?比如应用程序网关或网络安全组?既没有找到任何扩展也没有找到包。

为什么它仍在使用 2015 版架构? (https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json)

谢谢!

azure visual-studio templates azure-resource-manager
1个回答
0
投票

是否有添加额外资源的选项。

  • 我安装了visual studio 2022,添加了Azure开发。 enter image description here

  • Azure 资源组中创建了一个空白模板项目 enter image description here

  • 项目如下所示。 enter image description here

  • 通过下面的代码片段,我们可以使用 Azure CLI 或 Azure PowerShell 部署单个资源。 enter image description here

enter image description here

  • 只需导航到包含模板文件的目录并运行适当的 Azure 命令即可部署资源。例如,使用 Azure CLI
     部署一个
    Network Security Group
az deployment group create --resource-group <resource-group-name> --template-file <template-file-name> --parameters <parameter-file-name>
  • 我们可以添加最新版本的架构,请在下方查看。 enter image description here
  • 有关更多信息,请参阅此文档。
© www.soinside.com 2019 - 2024. All rights reserved.