From 046b2eebb8965f1f0560edba971f92404f6535ca Mon Sep 17 00:00:00 2001 From: guyomog78 Date: Mon, 14 Jan 2019 13:43:53 +0100 Subject: [PATCH] Correct ElasticSearch and Tika VM Ip to be in the good subnet The deployment failed with the current azuredeploy.json when I select Elasticsearch VM and Tika VM. Tika deployment error : "Private static IP address 172.31.5.20 does not belong to the range of subnet prefix 172.31.1.0/24. Elasticsearch deployment error : "Private static IP address 172.31.4.21 does not belong to the range of subnet prefix 172.31.5.0/24.\" "Private static IP address 172.31.4.20 does not belong to the range of subnet prefix 172.31.5.0/24.\" "Private static IP address 172.31.4.22 does not belong to the range of subnet prefix 172.31.5.0/24.\" I have updated IP addresse variables to be in accordance with subnet. --- azuredeploy.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azuredeploy.json b/azuredeploy.json index 7602a39b..7b5352f1 100644 --- a/azuredeploy.json +++ b/azuredeploy.json @@ -1092,9 +1092,9 @@ "elasticNicName2": "[concat('elastic-vm-nic-02-',variables('resourceprefix'))]", "elasticNicName3": "[concat('elastic-vm-nic-03-',variables('resourceprefix'))]", "elasticScriptFilename": "install_elastic.sh", - "elasticVm1IP": "[concat( variables('octets')[0], '.', variables('octets')[1], '.', string(add(int(variables('octets')[2]),4)), '.20')]", - "elasticVm2IP": "[concat( variables('octets')[0], '.', variables('octets')[1], '.', string(add(int(variables('octets')[2]),4)), '.21')]", - "elasticVm3IP": "[concat( variables('octets')[0], '.', variables('octets')[1], '.', string(add(int(variables('octets')[2]),4)), '.22')]", + "elasticVm1IP": "[concat( variables('octets')[0], '.', variables('octets')[1], '.', string(add(int(variables('octets')[2]),5)), '.20')]", + "elasticVm2IP": "[concat( variables('octets')[0], '.', variables('octets')[1], '.', string(add(int(variables('octets')[2]),5)), '.21')]", + "elasticVm3IP": "[concat( variables('octets')[0], '.', variables('octets')[1], '.', string(add(int(variables('octets')[2]),5)), '.22')]", "elasticVmName": "[concat('elastic-vm-',variables('resourceprefix'))]", "elasticVmName1": "[concat('elastic-vm-01-',variables('resourceprefix'))]", "elasticVmName2": "[concat('elastic-vm-02-',variables('resourceprefix'))]", @@ -1198,7 +1198,7 @@ "tikaNicName": "[concat('tika-vm-nic-',variables('resourceprefix'))]", "tikaScriptFilename": "install_tika.sh", "tikaService": "[parameters('tikaService')]", - "tikaVmIP": "[if(equals(parameters('tikaService'), 'tika'), concat( variables('octets')[0], '.', variables('octets')[1], '.', string(add(int(variables('octets')[2]),5)), '.20'), 'none')]", + "tikaVmIP": "[if(equals(parameters('tikaService'), 'tika'), concat( variables('octets')[0], '.', variables('octets')[1], '.', string(add(int(variables('octets')[2]),1)), '.20'), 'none')]", "tikaVmName": "[concat('tika-vm-',variables('resourceprefix'))]", "tikaVmSku": "[parameters('tikaVmSku')]", "vNetAddressSpace": "[parameters('vNetAddressSpace')]",