You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/digitaltwins/Azure.DigitalTwins.Core/tests/prerequisites/prerequisite readme.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,16 +14,21 @@
14
14
### Install Bicep
15
15
16
16
- Install using the instructions in [bicep](https://github.com/Azure/bicep/blob/main/docs/installing.md)
17
+
- Note that to deploy Bicep files, use Bicep CLI version 0.3.1 or later. To check your Bicep CLI version, run:
18
+
19
+
```bash
20
+
bicep --version
21
+
```
17
22
18
23
### Run the setup script
19
24
20
-
The script outputs [test-resources.bicep](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/test-resources_needs_fixing.bicep) file in the root folder [digitaltwins](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/digitaltwins)
25
+
The script outputs [test-resources.bicep](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/test-resources.bicep) file in the root folder [digitaltwins](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/digitaltwins)
21
26
22
27
-`.\setup.ps1`
23
28
24
29
### Generate the ARM template
25
30
26
-
The ARM template [test-resources.json](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/test-resources.json) is generated from the [test-resources.bicep](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/test-resources_needs_fixing.bicep) file by running the following script
31
+
The ARM template [test-resources.json](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/test-resources.json) is generated from the [test-resources.bicep](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/test-resources.bicep) file by running the following script
description: 'The client OID to grant access to test resources.'
11
-
}
12
-
}
4
+
@description('The client OID to grant access to test resources.')
5
+
paramtestApplicationOidstring
13
6
14
-
paramregionstring {
15
-
metadata: {
16
-
description: 'The region of the resource. By default, this is the same as the resource group.'
17
-
}
18
-
default: az.resourceGroup().location
19
-
}
7
+
@description('The region of the resource. By default, this is the same as the resource group.')
8
+
paramregionstring = az.resourceGroup().location
20
9
21
-
paramenvironmentNamestring {
22
-
metadata: {
23
-
description: 'Name of the environment. The name cannot include: \'<\', \'>\', \'%\', \'&\', \':\', \'\\\', \'?\', \'/\' and any control characters. All other characters are allowed.'
24
-
}
25
-
maxLength: 90
26
-
default: concat(az.resourceGroup().name, '-TSI')
27
-
}
10
+
@maxLength(90)
11
+
@description('Name of the environment. The name cannot include: \'<\', \'>\', \'%\', \'&\', \':\', \'\\\', \'?\', \'/\' and any control characters. All other characters are allowed.')
description: 'The name of the consumer group that the Time Series Insights service will use to read the data from the event hub. NOTE: To avoid resource contention, this consumer group must be dedicated to the Time Series Insights service and not shared with other readers.'
32
-
}
33
-
default: concat(environmentName, 'CG')
34
-
}
14
+
@description('The name of the consumer group that the Time Series Insights service will use to read the data from the event hub. NOTE: To avoid resource contention, this consumer group must be dedicated to the Time Series Insights service and not shared with other readers.')
description: 'Time Series ID acts as a partition key for your data and as a primary key for your time series model. It is important that you specify the appropriate Time Series Property ID during environment creation, since you cannot change it later. Note that the Property ID is case sensitive. You can use 1-3 keys: one is required, but up to three can be used to create a composite.'
17
+
@maxLength(3)
18
+
@description('Time Series ID acts as a partition key for your data and as a primary key for your time series model. It is important that you specify the appropriate Time Series Property ID during environment creation, since you cannot change it later. Note that the Property ID is case sensitive. You can use 1-3 keys: one is required, but up to three can be used to create a composite.')
19
+
paramenvironmentTimeSeriesIdPropertiesarray = [
20
+
{
21
+
'name': 'building'
22
+
'type': 'string'
39
23
}
40
-
maxLength: 3
41
-
default: [
42
-
{
43
-
'name': 'building'
44
-
'type': 'string'
45
-
}
46
-
{
47
-
'name': 'floor'
48
-
'type': 'string'
49
-
}
50
-
{
51
-
'name': 'room'
52
-
'type': 'string'
53
-
}
54
-
]
55
-
}
56
-
57
-
parameventSourceNamestring {
58
-
metadata: {
59
-
description: 'Name of the event source child resource. The name cannot include: \'<\', \'>\', \'%\', \'&\', \':\', \'\\\', \'?\', \'/\' and any control characters. All other characters are allowed.'
description: 'If you have an existing IotHub provide the name here. Defaults to the same resource group as the TSI environnment.'
28
+
{
29
+
'name': 'room'
30
+
'type': 'string'
68
31
}
69
-
default: az.resourceGroup().name
70
-
}
32
+
]
71
33
72
-
parameventSourceTimestampPropertyNamestring {
73
-
metadata: {
74
-
description: 'The event property that will be used as the event source\'s timestamp. If a value is not specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.'
@description('Name of the event source child resource. The name cannot include: \'<\', \'>\', \'%\', \'&\', \':\', \'\\\', \'?\', \'/\' and any control characters. All other characters are allowed.')
@description('The event property that will be used as the event source\'s timestamp. If a value is not specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.')
0 commit comments