diff --git a/100-marketplace-sample/azuredeploy.json b/100-marketplace-sample/azuredeploy.json
index e39c77ec1b54..c2921065f472 100644
--- a/100-marketplace-sample/azuredeploy.json
+++ b/100-marketplace-sample/azuredeploy.json
@@ -6,7 +6,7 @@
       "type": "string",
       "defaultValue": "[resourceGroup().location]",
       "metadata": {
-        "description": "Location to for the resources."
+        "description": "Location for the resources."
       }
     },
     "vmName": {
@@ -329,7 +329,7 @@
           "type": "extensions",
           "name": "configScript",
           "apiVersion": "2018-04-01",
-          "location": "[resourceGroup().location]",
+          "location": "[parameters('location')]",
           "dependsOn": [
             "[parameters('vmName')]"
           ],
@@ -357,4 +357,4 @@
       "value": "[if(equals(parameters('publicIpNewOrExisting'), 'none'), 'no public ip', concat('ssh ', parameters('adminUsername'), '@', reference(resourceId(parameters('publicIpResourceGroupName'), 'Microsoft.Network/publicIPAddresses', parameters('publicIpName')), '2018-04-01').dnsSettings.fqdn))]"
     }
   }
-}
\ No newline at end of file
+}