2021-10-15 22:51:31 +03:00
|
|
|
/**************************************************/
|
2021-11-05 03:33:18 +03:00
|
|
|
// Deploy ADX clusters with multiple databases
|
2021-10-15 22:51:31 +03:00
|
|
|
// ready to accomodate integration tests
|
2021-10-05 20:26:57 +03:00
|
|
|
|
2023-10-24 21:13:28 +03:00
|
|
|
var intTestDbCountPerPrefix = 150
|
2021-11-12 19:06:47 +03:00
|
|
|
|
2021-10-05 20:26:57 +03:00
|
|
|
var uniqueId = uniqueString(resourceGroup().id, 'delta-kusto')
|
2021-10-05 21:05:49 +03:00
|
|
|
var prefixes = [
|
2021-10-29 23:59:10 +03:00
|
|
|
'github_linux_'
|
|
|
|
'github_win_'
|
|
|
|
'github_mac_os_'
|
2021-11-05 00:12:07 +03:00
|
|
|
'github_laptop_'
|
2021-10-15 01:42:07 +03:00
|
|
|
]
|
2021-10-05 20:26:57 +03:00
|
|
|
|
2023-03-23 17:44:23 +03:00
|
|
|
resource intTestCluster 'Microsoft.Kusto/clusters@2022-12-29' = {
|
2021-10-29 23:59:10 +03:00
|
|
|
name: 'intTests${uniqueId}'
|
|
|
|
location: resourceGroup().location
|
|
|
|
tags: {
|
2021-11-04 02:32:28 +03:00
|
|
|
'testLevel': 'integration'
|
2021-10-29 23:59:10 +03:00
|
|
|
}
|
|
|
|
sku: {
|
|
|
|
'name': 'Dev(No SLA)_Standard_E2a_v4'
|
|
|
|
'tier': 'Basic'
|
|
|
|
'capacity': 1
|
|
|
|
}
|
2023-10-15 02:25:38 +03:00
|
|
|
properties: {
|
|
|
|
enableStreamingIngest: true
|
|
|
|
}
|
2021-11-06 22:40:01 +03:00
|
|
|
}
|
|
|
|
|
2023-10-24 21:36:10 +03:00
|
|
|
@batchSize(5)
|
2023-03-23 17:44:23 +03:00
|
|
|
resource intTestDbs 'Microsoft.Kusto/clusters/databases@2022-12-29' = [for i in range(0, length(prefixes) * intTestDbCountPerPrefix): {
|
2021-11-12 20:55:58 +03:00
|
|
|
name: '${prefixes[i / intTestDbCountPerPrefix]}${format('{0:D8}', i % intTestDbCountPerPrefix + 1)}'
|
|
|
|
location: resourceGroup().location
|
|
|
|
parent: intTestCluster
|
|
|
|
kind: 'ReadWrite'
|
|
|
|
}]
|