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: articles/iot-operations/discover-manage-assets/howto-configure-opc-ua.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -173,12 +173,14 @@ Now you can define the tags associated with the asset. To add OPC UA tags:
173
173
| ns=3;s=FastUInt10 | Temperature |
174
174
| ns=3;s=FastUInt100 | Humidity |
175
175
176
-
1. Select **Manage default settings** to configure default settings for messages from the asset. These settings apply to all the OPC UA tags that belong to the asset. You can override these settings for each tag that you add. Default settings include:
176
+
1. To configure default settings for messages from the asset, select **Manage default settings**. These settings apply to all the OPC UA tags that belong to the asset. You can override these settings for each tag that you add. Default settings include:
177
177
178
178
- **Sampling interval (milliseconds)**: The sampling interval indicates the fastest rate at which the OPC UA server should sample its underlying source for data changes.
179
179
- **Publishing interval (milliseconds)**: The rate at which OPC UA server should publish data.
180
180
- **Queue size**: The depth of the queue to hold the sampling data before publishing it.
181
181
182
+
1. To configure the MQTT topic to publish the tag data to, select **Manage default dataset**. Enter an MQTT topic name such as `azure-iot-operations/data/thermostat`, then select **Update**.
183
+
182
184
1. On the **Tags** page, select **Next** to go to the **Add events** page.
183
185
184
186
# [Azure CLI](#tab/cli)
@@ -187,16 +189,16 @@ Use the following commands to add a "thermostat" namespace asset to your device
187
189
188
190
```azurecli
189
191
# Create the asset
190
-
az iot ops ns asset opcua create --name thermostat --instance {your instance name} -g {your resource group name} --device opc-ua-connector --endpoint-name opc-ua-connector-0 --description 'A simulated thermostat asset'
192
+
az iot ops ns asset opcua create --name thermostat --instance {your instance name} -g {your resource group name} --device opc-ua-connector --endpoint opc-ua-connector-0 --description 'A simulated thermostat asset'
Remove the existing **Custom properties** and add the following custom properties. Be careful to use the exact property names, as the Power BI template in a later tutorial queries for them:
204
203
@@ -216,18 +215,20 @@ Select **Next** to go to the **Add tags** page.
216
215
217
216
### Create OPC UA tags
218
217
219
-
Add an OPC UA tag on the **Add tags** page. To add a tag, select **Add tag**. Enter the tag details shown in the following table:
218
+
Add an OPC UA tag on the **Tags** page. To add a tag, select **Add tag**. Enter the tag details shown in the following table:
220
219
221
-
|Node ID | Tag name |
220
+
|Data source| Tag name |
222
221
| ------------------ | ----------- |
223
222
| ns=3;s=SpikeData | temperature |
224
223
225
-
The node ID here is specific to the OPC UA simulator. The node generates random values within a specified range and also has intermittent spikes.
224
+
The data source value here is a specific OPC UA simulator node. The node generates random values within a specified range and also has intermittent spikes.
226
225
227
226
You can select **Manage default settings** to change the default sampling interval and queue size for each tag.
228
227
229
228
:::image type="content" source="media/tutorial-add-assets/add-tag.png" lightbox="media/tutorial-add-assets/add-tag.png" alt-text="Screenshot of Azure IoT Operations add tag page.":::
230
229
230
+
To configure the MQTT topic to publish the tag data to, select **Manage default dataset**. Enter `azure-iot-operations/data/thermostat` as the MQTT topic, then select **Update**. This topic is used by the data flow in the next tutorial to send messages to the cloud.
231
+
231
232
Select **Next** to go to the **Add events** page and then **Next** to go to the **Review** page.
232
233
233
234
### Review
@@ -236,10 +237,10 @@ Review your asset and tag details and make any adjustments you need before you s
This configuration deploys a new asset called `thermostat` to the cluster. You can view your assets in your resource group in the Azure portal. You can also use `kubectl` to view the assets locally in your cluster:
240
+
This configuration deploys a new asset called `thermostat` to the cluster. You can also use `kubectl` to view the assets locally in your cluster:
240
241
241
242
```console
242
-
kubectl get assets -n azure-iot-operations
243
+
kubectl get assets.namespace -n azure-iot-operations
243
244
```
244
245
245
246
## View resources in the Azure portal
@@ -256,7 +257,7 @@ The portal enables you to view the asset details. Select **JSON View** for more
0 commit comments