2018-03-15 20:20:28 +03:00
{
"$schema" : "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#" ,
"contentVersion" : "1.0.0.0" ,
"parameters" : {
"_artifactsLocation" : {
"type" : "string" ,
"metadata" : {
"description" : "The base URI where artifacts required by this template are located. When the template is deployed using the accompanying scripts, a private location in the subscription will be used and this value will be automatically generated."
} ,
2018-04-03 20:20:35 +03:00
"defaultValue" : "https://raw.githubusercontent.com/Azure/Moodle/tshirt-sizing/"
2018-03-15 20:20:28 +03:00
} ,
"_artifactsLocationSasToken" : {
"type" : "securestring" ,
"metadata" : {
"description" : "The sasToken required to access _artifactsLocation. When the template is deployed using the accompanying scripts, a sasToken will be automatically generated."
} ,
"defaultValue" : ""
} ,
"sshPublicKey" : {
"metadata" : {
"description" : "ssh public key"
} ,
"type" : "string"
}
} ,
"resources" : [
{
"type" : "Microsoft.Resources/deployments" ,
"apiVersion" : "2017-05-10" ,
2018-04-02 22:53:37 +03:00
"name" : "mainTemplate" ,
2018-03-15 20:20:28 +03:00
"properties" : {
"mode" : "Incremental" ,
"parameters" : {
2018-04-02 22:37:11 +03:00
"_artifactsLocation" : { "value" : "[parameters('_artifactsLocation')]" } ,
"_artifactsLocationSasToken" : { "value" : "[parameters('_artifactsLocationSasToken')]" } ,
2018-04-03 00:32:17 +03:00
"redisDeploySwitch" : { "value" : false } ,
2018-04-02 22:37:11 +03:00
"sshPublicKey" : { "value" : "[parameters('sshPublicKey')]" } ,
"autoscaleVmSku" : { "value" : "Standard_DS1_v2" } ,
"dbServerType" : { "value" : "mssql" } ,
2018-04-03 00:32:17 +03:00
"fileServerDiskCount" : { "value" : 2 } ,
"fileServerDiskSize" : { "value" : 32 }
2018-03-15 20:20:28 +03:00
} ,
"templateLink" : {
"uri" : "[concat(parameters('_artifactsLocation'), 'azuredeploy.json', parameters('_artifactsLocationSasToken'))]"
}
}
}
] ,
2018-04-02 22:53:37 +03:00
"outputs" : {
"mainTemplateOutputs" : {
"type" : "object" ,
"value" : "[reference('mainTemplate').outputs]"
}
} ,
2018-03-15 20:20:28 +03:00
"variables" : {
"documentation01" : "This wrapper template calls the main-template with bare minimum configs and the only required parameter (sshPublicKey)." ,
"documentation02" : "To speed up deployment and consume least resources, other parameters are fixed in this tempalte and overriden as follows:" ,
"documentation03" : " - fileServerType: nfs" ,
"documentation04" : " - autoscaleVmSku: Standard_DS1_vs" ,
"documentation05" : " - fileServerDiskCount: 2" ,
"documentation06" : " - dbServerType: mssql" ,
"documentation07" : " - redisDeploySwitch: false"
}
}