Is there any particular reason why you would want to use V2 instead of V3. V3 is fully compatible with V2 and provides greater performance. https://learn.microsoft.com/en-us/azure/data-explorer/engine-v3
To answer your question, looking at the API, V2 is listed as an engine type under the create method. Using a slightly modified version of this template here, by adding in the engineType property, it has successfully deployed as V2 in my environment
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"clusters_kustocluster_name": {
"defaultValue": "[concat('kusto', uniqueString(resourceGroup().id))]",
"type": "String",
"metadata": {
"description": "Name of the cluster to create"
}
},
"databases_kustodb_name": {
"defaultValue": "kustodb",
"type": "String",
"metadata": {
"description": "Name of the database to create"
}
},
"location": {
"defaultValue": "[resourceGroup().location]",
"type": "String",
"metadata": {
"description": "Location for all resources."
}
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Kusto/clusters/databases",
"apiVersion": "2020-06-14",
"name": "[concat(parameters('clusters_kustocluster_name'), '/', parameters('databases_kustodb_name'))]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Kusto/clusters', parameters('clusters_kustocluster_name'))]"
],
"properties": {
"softDeletePeriodInDays": 365,
"hotCachePeriodInDays": 31
}
},
{
"type": "Microsoft.Kusto/clusters",
"apiVersion": "2020-06-14",
"name": "[parameters('clusters_kustocluster_name')]",
"location": "[parameters('location')]",
"tags": {
"Created By": "GitHub quickstart template"
},
"sku": {
"name": "Dev(No SLA)_Standard_E2a_v4",
"tier": "Basic",
"capacity": 1
},
"properties": {
"engineType": "V2"
}
}
]
}