@@ -32,20 +32,20 @@ resource aioExtension 'Microsoft.KubernetesConfiguration/extensions@2022-11-01'
3232 scope : connectedCluster
3333}
3434
35- resource aioInstance 'Microsoft.IoTOperations/instances@2024-11 -01' existing = {
35+ resource aioInstance 'Microsoft.IoTOperations/instances@2025-04 -01' existing = {
3636 name : aioInstanceName
3737}
3838
39- resource defaultDataflowEndpoint 'Microsoft.IoTOperations/instances/dataflowEndpoints@2024-11 -01' existing = {
39+ resource defaultDataflowEndpoint 'Microsoft.IoTOperations/instances/dataflowEndpoints@2025-04 -01' existing = {
4040 name : defaultDataflowEndpointName
4141}
4242
43- resource defaultDataflowProfile 'Microsoft.IoTOperations/instances/dataflowProfiles@2024-11 -01' existing = {
43+ resource defaultDataflowProfile 'Microsoft.IoTOperations/instances/dataflowProfiles@2025-04 -01' existing = {
4444 name : defaultDataflowProfileName
4545 parent : aioInstance
4646}
4747
48- resource namespace 'Microsoft.DeviceRegistry/namespaces@2025-07 -01-preview ' existing = {
48+ resource namespace 'Microsoft.DeviceRegistry/namespaces@2025-10 -01' existing = {
4949 name : aioNamespaceName
5050}
5151
@@ -55,9 +55,10 @@ resource namespace 'Microsoft.DeviceRegistry/namespaces@2025-07-01-preview' exis
5555
5656var assetName = 'oven'
5757var opcUaEndpointName = 'opc-ua-connector-0'
58+ var deviceName = 'opc-ua-connector'
5859
59- resource device 'Microsoft.DeviceRegistry/namespaces/devices@2025-07 -01-preview ' = {
60- name : 'opc-ua-connector'
60+ resource device 'Microsoft.DeviceRegistry/namespaces/devices@2025-10 -01' = {
61+ name : deviceName
6162 parent : namespace
6263 location : resourceGroup ().location
6364 extendedLocation : {
@@ -82,7 +83,7 @@ resource device 'Microsoft.DeviceRegistry/namespaces/devices@2025-07-01-preview'
8283 }
8384}
8485
85- resource asset 'Microsoft.DeviceRegistry/namespaces/assets@2025-07 -01-preview ' = {
86+ resource asset 'Microsoft.DeviceRegistry/namespaces/assets@2025-10 -01' = {
8687 name : assetName
8788 parent : namespace
8889 location : resourceGroup ().location
@@ -185,7 +186,7 @@ resource eventHub 'Microsoft.EventHub/namespaces/eventhubs@2024-01-01' = {
185186/* Data flow */
186187/*****************************************************************************/
187188
188- resource dataflowEndpointEventHub 'Microsoft.IoTOperations/instances/dataflowEndpoints@2024-11 -01' = {
189+ resource dataflowEndpointEventHub 'Microsoft.IoTOperations/instances/dataflowEndpoints@2025-04 -01' = {
189190 parent : aioInstance
190191 name : 'quickstart-eh-endpoint'
191192 extendedLocation : {
@@ -216,7 +217,7 @@ resource dataflowEndpointEventHub 'Microsoft.IoTOperations/instances/dataflowEnd
216217 ]
217218}
218219
219- resource dataflowCToF 'Microsoft.IoTOperations/instances/dataflowProfiles/dataflows@2024-11 -01' = {
220+ resource dataflowCToF 'Microsoft.IoTOperations/instances/dataflowProfiles/dataflows@2025-04 -01' = {
220221 parent : defaultDataflowProfile
221222 name : 'quickstart-oven-data-flow'
222223 extendedLocation : {
@@ -232,7 +233,7 @@ resource dataflowCToF 'Microsoft.IoTOperations/instances/dataflowProfiles/datafl
232233 endpointRef : defaultDataflowEndpoint .name
233234 assetRef : asset .name
234235 serializationFormat : 'Json'
235- dataSources : ['azure-iot-operations/data/${assetName }' ]
236+ dataSources : ['azure-iot-operations/data/${asset . name }' ]
236237 }
237238 }
238239 {
@@ -300,4 +301,3 @@ output eventHub object = {
300301 name : eventHub .name
301302 namespace : eventHubNamespace .name
302303}
303-
0 commit comments