|
40 | 40 | "subnetName": "[concat('vsn', resourceGroup().name)]", |
41 | 41 | "subnetPrefix": "10.0.0.0/24", |
42 | 42 | "storageAccountType": "Standard_LRS", |
43 | | - "publicIPAddressType": "Dynamic", |
44 | | - "publicIPAddressName": "[concat('ip', resourceGroup().name)]", |
45 | | - "uniqueDnsNameForPublicIP": "[concat('dns', resourceGroup().name)]", |
46 | 43 | "uniqueStorageAccountName": "[concat('sa', resourceGroup().name)]", |
47 | 44 | "uniqueStorageAccountContainerName": "[concat('sc', resourceGroup().name)]", |
48 | 45 | "vmOsSku": "2012-R2-Datacenter", |
|
72 | 69 | "accountType": "[variables('storageAccountType')]" |
73 | 70 | } |
74 | 71 | }, |
75 | | - { |
76 | | - "apiVersion": "[variables('apiVersionNRP')]", |
77 | | - "type": "Microsoft.Network/publicIPAddresses", |
78 | | - "name": "[variables('publicIPAddressName')]", |
79 | | - "location": "[variables('location')]", |
80 | | - "properties": { |
81 | | - "publicIPAllocationMethod": "[variables('publicIPAddressType')]", |
82 | | - "dnsSettings": { |
83 | | - "domainNameLabel": "[variables('uniqueDnsNameForPublicIP')]" |
84 | | - } |
85 | | - } |
86 | | - }, |
87 | 72 | { |
88 | 73 | "apiVersion": "[variables('apiVersionNRP')]", |
89 | 74 | "type": "Microsoft.Network/networkSecurityGroups", |
|
138 | 123 | "name": "[variables('vmNicName')]", |
139 | 124 | "location": "[variables('location')]", |
140 | 125 | "dependsOn": [ |
141 | | - "[concat('Microsoft.Network/publicIPAddresses/',variables('publicIPAddressName'))]", |
142 | 126 | "[concat('Microsoft.Network/virtualNetworks/',variables('virtualNetworkName'))]" |
143 | 127 | ], |
144 | 128 | "properties": { |
145 | 129 | "ipConfigurations": [ |
146 | 130 | { |
147 | | - "name": "ipconfigpublic", |
| 131 | + "name": "ipconfigpri", |
148 | 132 | "properties": { |
149 | 133 | "privateIPAllocationMethod": "Dynamic", |
150 | | - "publicIPAddress": { |
151 | | - "id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]" |
152 | | - }, |
153 | 134 | "subnet": { |
154 | 135 | "id": "[variables('subnetRef')]" |
155 | 136 | } |
|
0 commit comments