Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elasticVmSku doesn't exist #5

Open
SorraTheOrc opened this issue Dec 29, 2017 · 2 comments
Open

elasticVmSku doesn't exist #5

SorraTheOrc opened this issue Dec 29, 2017 · 2 comments

Comments

@SorraTheOrc
Copy link
Contributor

        "code": "BadRequest",
        "message": "{\r\n  \"error\": {\r\n    \"code\": \"InvalidTemplate\",\r\n    \"message\": \"Unable to process template language expressions for resource '/subscriptions/325e7c34-99fb-4190-aa87-1df746c67705/resourceGroups/rgmoodlearm3/providers/Microsoft.Compute/virtualMachines/elastic-vm-01-cll5qr' at line '36' and column '10'. 'The language expression property 'elasticVmSku' doesn't exist, available properties are 'glusterDiskSize, moodleDbUser, gatewayType, lbPipName, elasticNicName3, elasticNicName2, elasticNicName1, extProbe, controllerVmSku, siteURL, gfxAvailabilitySetName, elasticVm3IP, gatewaySubnet, location, moodleDbPass, skuFamily, jboxPipName, elasticScriptFilename, skuTier, extNatPool, postgresVersion, glusterVmCount, dbLoginPassword, skuCapacityDTU, redisCacheName, jboxNicName, jboxVmName, blobStorageAccountType, extFeName, elasticAvailabilitySetName, skuSizeMB, subnetElastic, moodleDbName, elasticVm2IP, redisDns, vpnType, gatewaySubnetPrefix, autoscaleVmCount, vmssdStorageAccounttName, subnetSan, scriptLocation, subnetRedisPrefix, subnetSanPrefix, moodleVersion, computeApi, vNetAddressSpace, lbDns, lbName, osType, glusterDiskCount, policyName, serverName, subnetRedis, sshPublicKey, gatewayName, glusterScriptFilename, sslEnforcement, elasticVmName3, elasticVmName2, elasticVmName1, subnetElasticRange, azureBackupSwitch, glusterVmSku, dbServerType, dbUsername, moodleDbUserAzure, applyScriptsSwitch, vmssName, autoscaleVmSku, subnetElasticPrefix, gatewaySubnetRange, moodleAdminPass, jboxNsgName, dbLogin, subnetRedisRange, subnetWebPrefix, extBeName, resourcesPrefix, blobStorageAccountName, sshUsername, mysqlVersion, gfsNameRoot, vaultName, elasticClusterName, subnetSanRange, gatewayPublicIPName, vnetName, skuName, subnetWebRange, subnetWeb, moodleSetupScriptFilename, elasticVm1IP, elasticVmName, baseTemplateUrl, firewallRuleName, moodleInstallScriptFilename, sshPassword'.'\"\r\n  }\r\n}"
@hosungsmsft
Copy link

Same here. Looks like there's a line missing in azuredeploy.json. I'm trying the modified template, and will update here with my results.

diff --git a/azuredeploy.json b/azuredeploy.json
index 82c39ad..0e4cf74 100644
--- a/azuredeploy.json
+++ b/azuredeploy.json
@@ -513,6 +513,7 @@
             "dbLoginPassword": "[concat(substring(uniqueString(resourceGroup().id, deployment().name), 2, 11), '*7', toUpper('pfiwb'))]",
             "dbServerType": "[parameters('dbServerType')]",
             "dbUsername": "[concat(parameters('dbLogin'), '@', parameters('dbServerType'), '-', variables('resourceprefix'))]",
+            "elasticVmSku": "[parameters('elasticVmSku')]",
             "elasticAvailabilitySetName": "[concat('elastic-avset-',variables('resourceprefix'))]",
             "elasticClusterName": "[concat('es-cluster-',variables('resourceprefix'))]",
             "elasticNicName1": "[concat('elastic-vm-nic-01-',variables('resourceprefix'))]",

@hosungsmsft
Copy link

Succeeded now, but I had to make another change, as the Standard_DS1 for the controllerVmSku wasn't available on the region I was deploying at. Also had to change the region from westcentralus to some place else (northcentralus), as PostgresSQL wasn't available in westcentralus. I'll now try the deployed Moodle cluster. Thanks.

index 82c39ad..7dd60ce 100644
--- a/azuredeploy.json
+++ b/azuredeploy.json
@@ -49,7 +49,7 @@
             "type": "string"
         },
         "controllerVmSku": {
-            "defaultValue": "Standard_DS1",
+            "defaultValue": "Standard_DS1_v2",
             "metadata": {
                 "description": "VM size for the controller node"
             },
@@ -513,6 +513,7 @@
             "dbLoginPassword": "[concat(substring(uniqueString(resourceGroup().id, deployment().name), 2, 11), '*7', toUpper('pfiwb'))]",
             "dbServerType": "[parameters('dbServerType')]",
             "dbUsername": "[concat(parameters('dbLogin'), '@', parameters('dbServerType'), '-', variables('resourceprefix'))]",
+            "elasticVmSku": "[parameters('elasticVmSku')]",
             "elasticAvailabilitySetName": "[concat('elastic-avset-',variables('resourceprefix'))]",
             "elasticClusterName": "[concat('es-cluster-',variables('resourceprefix'))]",
             "elasticNicName1": "[concat('elastic-vm-nic-01-',variables('resourceprefix'))]",
diff --git a/azuredeploy.parameters.json b/azuredeploy.parameters.json
index fa9d8d5..69a3638 100644
--- a/azuredeploy.parameters.json
+++ b/azuredeploy.parameters.json
@@ -7,7 +7,7 @@
                 "autoscaleVmSku":              { "value": "Standard_DS2_v2" },
                 "azureBackupSwitch":           { "value": 0 },
                 "blobStorageAccountType":      { "value": "Standard_LRS"},
-                "controllerVmSku":             { "value": "Standard_DS1" },
+                "controllerVmSku":             { "value": "Standard_DS1_v2" },
                 "dbServerType":                { "value": "postgres" },
                 "elasticVmSku":                { "value": "Standard_DS2_v2" },
                 "glusterDiskCount":            { "value": 4 },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants