Skip to content

Commit 557f7ff

Browse files
authored
Simulation updates for quickstarts and tutorials (#114)
1 parent ed56190 commit 557f7ff

File tree

2 files changed

+29
-63
lines changed

2 files changed

+29
-63
lines changed

samples/quickstarts/opc-plc-deployment.yaml

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -22,70 +22,35 @@ spec:
2222
- "--ph=opcplc-000000"
2323
- "--cdn=opcplc-000000"
2424
- "--ut"
25-
- "--sn=25"
25+
- "--sph"
26+
- "--sn=5"
2627
- "--sr=10"
27-
- "--fn=2000"
28+
- "--fn=10"
29+
- "--ftl=212"
30+
- "--ftu=273"
31+
- "--ftr=True"
2832
- "--veryfastrate=1000"
29-
- "--gn=5"
33+
- "--gn=1"
3034
- "--pn=50000"
31-
- "--maxsessioncount=100"
32-
- "--maxsubscriptioncount=100"
33-
- "--maxqueuedrequestcount=2000"
34-
- "--ses"
35-
- "--alm"
3635
- "--at=FlatDirectory"
3736
- "--drurs"
38-
- "--ll-debug"
39-
- "--nodesfile"
40-
- "/app/config/nodesfile.json"
4137
ports:
4238
- containerPort: 50000
4339
volumeMounts:
4440
- name: opc-plc-default-application-cert
4541
mountPath: /app/pki/own
4642
- name: opc-plc-trust-list
4743
mountPath: /app/pki/trusted
48-
- name: config-volume
49-
mountPath: /app/config
5044
volumes:
5145
- name: opc-plc-default-application-cert
5246
secret:
5347
secretName: opc-plc-default-application-cert
5448
- name: opc-plc-trust-list
5549
secret:
5650
secretName: opc-plc-trust-list
57-
- name: config-volume
58-
configMap:
59-
name: opc-plc-config
6051
serviceAccountName: opcplc-000000-service-account
6152
---
6253
apiVersion: v1
63-
kind: ConfigMap
64-
metadata:
65-
name: opc-plc-config
66-
namespace: azure-iot-operations
67-
labels:
68-
app.kubernetes.io/component: opcplc-000000
69-
data:
70-
nodesfile.json: |
71-
{
72-
"Folder": "MyTelemetry",
73-
"NodeList": [
74-
{
75-
"NodeId": "ns=3;s=FastUInt100",
76-
"Name": "Fryer Temperature",
77-
"DataType": "Double",
78-
"ValueRank": -1,
79-
"AccessLevel": "CurrentReadOrWrite",
80-
"Description": "Fryer Temperature with spikes",
81-
"Anomaly": "Spike",
82-
"MinValue": 150.0,
83-
"MaxValue": 200.0
84-
}
85-
]
86-
}
87-
---
88-
apiVersion: v1
8954
kind: Service
9055
metadata:
9156
name: opcplc-000000
@@ -235,4 +200,4 @@ subjects:
235200
roleRef:
236201
kind: Role
237202
name: opc-plc-000000-secret-access-role
238-
apiGroup: rbac.authorization.k8s.io
203+
apiGroup: rbac.authorization.k8s.io

samples/quickstarts/quickstart.bicep

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -76,38 +76,37 @@ resource asset 'Microsoft.DeviceRegistry/assets@2024-11-01' = {
7676
properties: {
7777
displayName: assetName
7878
assetEndpointProfileRef: assetEndpoint.name
79-
description: 'an oven is essential for baking a wide variety of products'
79+
description: 'Multi-function large oven for baked goods.'
8080

8181
enabled: true
82-
externalAssetId: '32faab3f-88e8-4f38-b901-e175dde50c28'
83-
manufacturer: 'http://asset.oven.contoso'
84-
manufacturerUri: 'http://oven.asset.contoso'
85-
model: 'Mymodel'
82+
manufacturer: 'Contoso'
83+
manufacturerUri: 'http://www.contoso.com/ovens'
84+
model: 'Oven-003'
8685
productCode: '12345C'
87-
hardwareRevision: 'http://docs.oven.asset.contoso'
88-
softwareRevision: '1.1'
86+
hardwareRevision: '2.3'
87+
softwareRevision: '14.1'
8988
serialNumber: '12345'
90-
documentationUri: 'http://docs.oven.asset.contoso'
89+
documentationUri: 'http://docs.contoso.com/ovens'
9190

9291
datasets: [
9392
{
94-
name: 'some randome datasets name'
93+
name: 'Oven telemetry'
9594
dataPoints: [
9695
{
9796
name: 'Temperature'
98-
dataSource: 'ns=3;s=FastUInt100'
97+
dataSource: 'ns=3;s=SpikeData'
9998
dataPointConfiguration: '{"samplingInterval":500,"queueSize":1}'
10099
observabilityMode: 'None'
101100
}
102101
{
103-
name: 'FillWeight'
104-
dataSource: 'ns=3;s=FastUInt1004'
102+
name: 'EnergyUse'
103+
dataSource: 'ns=3;s=FastUInt10'
105104
dataPointConfiguration: '{"samplingInterval":500,"queueSize":1}'
106105
observabilityMode: 'None'
107106
}
108107
{
109-
name: 'EnergyUse'
110-
dataSource: 'ns=3;s=FastUInt1005'
108+
name: 'Weight'
109+
dataSource: 'ns=3;s=FastUInt9'
111110
dataPointConfiguration: '{"samplingInterval":500,"queueSize":1}'
112111
observabilityMode: 'None'
113112
}
@@ -229,18 +228,20 @@ resource dataflowCToF 'Microsoft.IoTOperations/instances/dataflowProfiles/datafl
229228
}
230229
{
231230
type: 'Compute'
231+
description: 'Weight Offset'
232232
inputs: [
233-
'Temperature.Value ? $last'
233+
'Weight.Value ? $last'
234234
]
235-
expression: '$1 > 225'
236-
output: 'Spike'
235+
expression: '$1 - 150'
236+
output: 'FillWeight'
237237
}
238238
{
239-
type: 'Rename'
239+
type: 'Compute'
240240
inputs: [
241-
'Temperature.Value'
241+
'Temperature.Value ? $last'
242242
]
243-
output: 'Temperature.Value'
243+
expression: '$1 > 225'
244+
output: 'Spike'
244245
}
245246
{
246247
inputs: [

0 commit comments

Comments
 (0)