2016-05-04 01:45:10 +03:00
{
"$schema" : "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#" ,
2016-08-05 23:30:08 +03:00
"contentVersion" : "1.16.8.5" ,
2016-05-04 01:45:10 +03:00
"parameters" : {
"TestControllerVMName" : {
"type" : "string" ,
"metadata" : {
"description" : "Name of the existing test controller VM resource to use"
} ,
"defaultValue" : "sprg-tc-0"
} ,
"TargetSharePointServerVMName" : {
"type" : "string" ,
"metadata" : {
"description" : "Machine name of the SharePoint end point to test"
} ,
"defaultValue" : "sprg-sp-0"
} ,
"TargetSQLServerVMName" : {
"type" : "string" ,
"metadata" : {
"description" : "Machine name of the SharePoint farm's to test SQL server"
} ,
"defaultValue" : "sprg-sql-0"
} ,
"NumberOfLoadTestUsers" : {
"type" : "int" ,
"metadata" : {
"description" : "Number of users created for load testing"
} ,
"defaultValue" : 15
} ,
"LoadTestToRun" : {
"type" : "string" ,
"metadata" : {
"description" : "Name of the load test file to run"
} ,
"allowedValues" : [ "CSOMListRW.loadtest" , "MySiteHostRW.loadtest" , "MySiteRW.loadtest" ] ,
"defaultValue" : "MySiteHostRW.loadtest"
} ,
"TargetSharePointServerAdminUserName" : {
"type" : "string" ,
"metadata" : {
"description" : "Name of the test controller administrator account"
} ,
"defaultValue" : "Administrator"
} ,
"TargetSharePointServerUserPassword" : {
"type" : "securestring" ,
"metadata" : {
"description" : "Password of the test controller administrator account"
}
} ,
"VisualStudioVersionNumber" : {
"type" : "int" ,
"metadata" : {
"description" : "The version number of Visual Studio installed on the test controller. For example, if Visual Studio 2013 is installed the version number is 12"
} ,
"defaultValue" : 12
}
} ,
"variables" : {
2016-09-20 04:06:22 +03:00
"assetLocation" : "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/sharepoint-2013-non-ha-loadtest" ,
2016-05-04 01:45:10 +03:00
"LogToFileScriptName" : "LogToFile.psm1" ,
"LogToFileScriptURL" : "[concat(variables('assetLocation'),'/CommonScripts/',variables('LogToFileScriptName'))]" ,
"DownloadLTScriptName" : "DownloadLoadTestPackage.ps1" ,
"DownloadLTScriptURL" : "[concat(variables('assetLocation'),'/CommonScripts/',variables('DownloadLTScriptName'))]" ,
"PrepareLTForRunScriptName" : "TestControllerPrepareLoadTest.ps1" ,
"PrepareLTForRunScriptURL" : "[concat(variables('assetLocation'),'/TestControllerScripts/',variables('PrepareLTForRunScriptName'))]" ,
"StartLoadTestRunScriptName" : "TestControllerStartLoadTestRun.ps1" ,
"StartLoadTestRunScriptURL" : "[concat(variables('assetLocation'),'/TestControllerScripts/',variables('StartLoadTestRunScriptName'))]" ,
"RunnerScriptName" : "TestControllerScriptExtensionRunner.ps1" ,
"RunnerScriptURL" : "[concat(variables('assetLocation'),'/TestControllerScripts/',variables('RunnerScriptName'))]" ,
"LoadTestPackageURL" : "[concat(variables('assetLocation'),'/SharePointLoadTest.zip')]" ,
2016-08-08 21:00:25 +03:00
"LoadTestUnpackLocation" : "%SystemDrive%\\LoadTests\\SharePointLoadTest"
2016-05-04 01:45:10 +03:00
} ,
"resources" : [
{
"type" : "Microsoft.Compute/virtualMachines/extensions" ,
"name" : "[concat(parameters('TestControllerVMName'),'/RunLoadTest')]" ,
"apiVersion" : "2015-06-15" ,
"location" : "[resourceGroup().location]" ,
"properties" : {
"publisher" : "Microsoft.Compute" ,
"type" : "CustomScriptExtension" ,
2016-08-05 23:30:08 +03:00
"typeHandlerVersion" : "1.8" ,
2016-09-20 04:06:22 +03:00
"autoUpgradeMinorVersion" : true ,
2016-05-04 01:45:10 +03:00
"settings" : {
"fileUris" : [
"[variables('LogToFileScriptURL')]" ,
"[variables('DownloadLTScriptURL')]" ,
"[variables('PrepareLTForRunScriptURL')]" ,
"[variables('StartLoadTestRunScriptURL')]" ,
"[variables('RunnerScriptURL')]"
] ,
"commandToExecute" : "[concat('powershell -ExecutionPolicy Unrestricted -file ',variables('RunnerScriptName'),' ',variables('LoadTestPackageURL'),' ',variables('LoadTestUnpackLocation'),' ',parameters('TargetSharePointServerVMName'),' ',parameters('TargetSQLServerVMName'),' ',parameters('NumberOfLoadTestUsers'),' ',parameters('LoadTestToRun'),' ',parameters('TargetSharePointServerAdminUserName'),' ',parameters('TargetSharePointServerUserPassword'),' ',parameters('VisualStudioVersionNumber'))]"
}
}
}
] ,
"outputs" : { }
}