【问题标题】:How to create Azure VM with ipConfiguration that contains multiple private IP address using ARM template如何使用 ARM 模板创建包含多个私有 IP 地址的 ipConfiguration 的 Azure VM
【发布时间】:2019-02-01 19:12:10
【问题描述】:

我正在尝试创建一个具有两个私有 IP 地址(主要/次要)的虚拟机。我有一个工作 ARM 模板将创建主要,但我看不到在哪里指定次要。

"ipConfigurations": [
    {
       "name": "ipconfig1",
       "properties": {
       "privateIPAllocationMethod": "Static",
       "privateIPAddress":  "10.10.100.4",
       "subnet": { 
          "id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', 'myVnet, 'mySubnet')]" 
       }
       }
    }

【问题讨论】:

    标签: azure arm-template azure-template


    【解决方案1】:

    ipConfigurations 是一个数组,因此您可以向其中添加另一个(或更多)成员:

    "ipConfigurations": [
        {
            ...
        },
        {
            ...
        },
        ...
        {
            ...
        }
    ]
    

    【讨论】:

      猜你喜欢
      • 2022-12-23
      • 1970-01-01
      • 2022-11-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多