如何使用 ARM 模板创建具有包含多个私有 IP 地址的 ipConfiguration 的 Azure VM
How to create Azure VM with ipConfiguration that contains multiple private IP address using ARM template
我正在尝试创建一个具有两个私有 IP 地址 (primary/secondary) 的虚拟机。我有一个可以创建主要模板的工作 ARM 模板,但我看不到在哪里指定次要模板。
"ipConfigurations": [
{
"name": "ipconfig1",
"properties": {
"privateIPAllocationMethod": "Static",
"privateIPAddress": "10.10.100.4",
"subnet": {
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', 'myVnet, 'mySubnet')]"
}
}
}
ipConfigurations 是一个数组,因此您可以向其中添加另一个(或更多)成员:
"ipConfigurations": [
{
...
},
{
...
},
...
{
...
}
]
我正在尝试创建一个具有两个私有 IP 地址 (primary/secondary) 的虚拟机。我有一个可以创建主要模板的工作 ARM 模板,但我看不到在哪里指定次要模板。
"ipConfigurations": [
{
"name": "ipconfig1",
"properties": {
"privateIPAllocationMethod": "Static",
"privateIPAddress": "10.10.100.4",
"subnet": {
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', 'myVnet, 'mySubnet')]"
}
}
}
ipConfigurations 是一个数组,因此您可以向其中添加另一个(或更多)成员:
"ipConfigurations": [
{
...
},
{
...
},
...
{
...
}
]