如何创建Azure的VM与ipConfiguration包含使用ARM模板多个私有IP地址

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

我试图创建一个虚拟机有两个专用IP地址(初级/次级)。我将创建主作业臂的模板,但我不知道在哪里指定备用。

"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个回答
0
投票

ipConfigurations是一个数组,以便可以添加其他部件(或多个)它:

"ipConfigurations": [
    {
        ...
    },
    {
        ...
    },
    ...
    {
        ...
    }
]
© www.soinside.com 2019 - 2024. All rights reserved.