In order to get the maximal deployment to work I had to remove the parameter installElasticSearchSwitch from the template. I believe that it is in azuredeploy-maximal.json. on line 38
"installElasticSearchSwitch": { "value": true },
"code":"InvalidTemplate","message":"Deployment` template validation failed: 'The template parameters 'installElasticSearchSwitch' in the parameters file are not valid; they are not present in the original template and can therefore not be provided at deployment time.
In order to get the maximal deployment to work I had to remove the parameter installElasticSearchSwitch from the template. I believe that it is in azuredeploy-maximal.json. on line 38