Skip to content

Commit 12a3b51

Browse files
committed
more parameter fixes
1 parent 9892c91 commit 12a3b51

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

nestedtemplates/external-lb.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
"lbId": {
1414
"type": "String",
1515
"defaultValue": ""
16+
},
17+
"vnetId": {
18+
"type": "String",
19+
"defaultValue": ""
1620
}
1721
},
1822
"variables": {},

nestedtemplates/internal-lb.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
"lbId": {
1414
"type": "String",
1515
"defaultValue": ""
16+
},
17+
"vnetId": {
18+
"type": "String",
19+
"defaultValue": ""
1620
}
1721
},
1822
"variables": {},
@@ -33,7 +37,7 @@
3337
"privateIPAddress": "10.0.101.4",
3438
"privateIPAllocationMethod": "Static",
3539
"subnet": {
36-
"id": "[concat(variables('vnetId'), '/subnets/', parameters('zookeeperNetName'))]"
40+
"id": "[concat(parameters('vnetId'), '/subnets/', parameters('zookeeperNetName'))]"
3741
}
3842
}
3943
}

nestedtemplates/network-resources.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,14 @@
1313
"postgresNetName": {
1414
"type": "String",
1515
"defaultValue": ""
16-
},
17-
"clusterName": {
18-
"type": "String",
19-
"defaultValue": ""
2016
}
2117
},
2218
"variables": {
23-
"vnetName": "[concat(parameters('clusterName'), '-net')]"
2419
},
2520
"resources": [
2621
{
2722
"type": "Microsoft.Network/virtualNetworks",
28-
"name": "[variables('vnetName')]",
23+
"name": "[parameters('vnetName')]",
2924
"apiVersion": "2015-06-15",
3025
"location": "[resourceGroup().location]",
3126
"tags": {},

template.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"lbType": {
3434
"type": "string",
35-
"defaultValue": "yes",
35+
"defaultValue": "internal",
3636
"allowedValues": [
3737
"internal",
3838
"external"
@@ -99,7 +99,6 @@
9999
"internal": "internal-lb.json"
100100
},
101101
"lbId": "[resourceId('Microsoft.Network/loadBalancers/', variables('lbName'))]",
102-
"vnetGroup": "testht",
103102
"vnetId": "[resourceId(parameters('vnetGroup'), 'Microsoft.Network/virtualNetworks', parameters('vnetName'))]",
104103
"zookeeperInstanceCount": 3,
105104
"postgresInstanceCount": "[parameters('instanceCount')]",
@@ -134,6 +133,9 @@
134133
},
135134
"clusterName": {
136135
"value": "[parameters('clusterName')]"
136+
},
137+
"vnetId": {
138+
"value": "[variables('vnetId')]"
137139
}
138140
}
139141
}

0 commit comments

Comments
 (0)