Skip to content

Commit c4f88ec

Browse files
Merge pull request #268532 from timlt/update-akri-command
Add step to check Akri is connected to OPC UA Broker
2 parents 996611b + b5f7182 commit c4f88ec

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

articles/iot-operations/get-started/quickstart-add-assets.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ In this quickstart, you use the Azure IoT Operations (preview) portal to create
2727

2828
Complete [Quickstart: Deploy Azure IoT Operations Preview to an Arc-enabled Kubernetes cluster](quickstart-deploy.md) before you begin this quickstart.
2929

30-
To sign in to the Azure IoT Operations portal you need a work or school account in the tenant where you deployed Azure IoT Operations. If you're currently using a Microsoft account (MSA), you need to create a Microsoft Entra ID with at least contributor permissions for the resource group that contains your **Kubernetes - Azure Arc** instance. To learn more, see [Known Issues > Create Entra account](../troubleshoot/known-issues.md#azure-iot-operations-preview-portal).
30+
To sign in to the Azure IoT Operations portal, you need a work or school account in the tenant where you deployed Azure IoT Operations. If you're currently using a Microsoft account (MSA), you need to create a Microsoft Entra ID with at least contributor permissions for the resource group that contains your **Kubernetes - Azure Arc** instance. To learn more, see [Known Issues > Create Entra account](../troubleshoot/known-issues.md#azure-iot-operations-preview-portal).
3131

3232
## What problem will we solve?
3333

@@ -138,7 +138,7 @@ Enter the following asset information:
138138

139139
:::image type="content" source="media/quickstart-add-assets/create-asset-details.png" alt-text="Screenshot of Azure IoT Operations asset details page.":::
140140

141-
Scroll down on the **Asset details** page and configure any additional properties for the asset such as:
141+
Scroll down on the **Asset details** page and configure any other properties for the asset such as:
142142

143143
- Manufacturer
144144
- Manufacturer URI
@@ -149,7 +149,7 @@ Scroll down on the **Asset details** page and configure any additional propertie
149149
- Serial number
150150
- Documentation URI
151151

152-
You can remove the sample properties that are already defined and add your own custom properties
152+
You can remove the sample properties that are already defined and add your own custom properties.
153153

154154
Select **Next** to go to the **Add tags** page.
155155

@@ -162,7 +162,7 @@ Add two OPC UA tags on the **Add tags** page. To add each tag, select **Add tag
162162
| ns=3;s=FastUInt10 | temperature | none |
163163
| ns=3;s=FastUInt100 | Tag 10 | none |
164164

165-
The **Observability mode** is one of: none, gauge, counter, histogram, or log.
165+
The **Observability mode** is one of the following values: `none`, `gauge`, `counter`, `histogram`, or `log`.
166166

167167
You can override the default sampling interval and queue size for each tag.
168168

@@ -259,9 +259,9 @@ To verify the configuration, run the following command to view the Akri instance
259259
kubectl get akrii -n azure-iot-operations
260260
```
261261

262-
Note that it may take a few minutes for the instance to show up.
262+
It might take a few minutes for the instance to show up.
263263

264-
The output from the previous command looks like the following example. You may need to wait for a few seconds for the Akri instance to be created:
264+
The output from the previous command looks like the following example.
265265

266266
```console
267267
NAMESPACE NAME CONFIG SHARED NODES AGE
@@ -270,13 +270,29 @@ azure-iot-operations akri-opcua-asset-dbdef0 akri-opcua-asset true ["d
270270

271271
Now you can use these resources in the local cluster namespace.
272272

273+
To confirm that Akri connected to the OPC UA Broker, copy and paste the name of the Akri instance from the previous step into the following command:
274+
275+
```bash
276+
kubectl get akrii <AKRI_INSTANCE_NAME> -n azure-iot-operations -o json
277+
```
278+
279+
The command output looks like the following example. This example output shows the Akri instance `brokerProperties` values and confirms that the OPC UA Broker is connected.
280+
281+
```json
282+
"spec": {
283+
284+
"brokerProperties": {
285+
"ApplicationUri": "Boiler #2",
286+
"AssetEndpointProfile": "{\"spec\":{\"uuid\":\"opc-ua-broker-opcplc-000000-azure-iot-operation\"……
287+
```
288+
273289
## How did we solve the problem?
274290

275291
In this quickstart, you added an asset endpoint and then defined an asset and tags. The assets and tags model data from the OPC UA server to make the data easier to use in an MQTT broker and other downstream processes. You use the thermostat asset you defined in the next quickstart.
276292

277293
## Clean up resources
278294

279-
If you're not going to continue to use this deployment, delete the Kubernetes cluster that you deployed Azure IoT Operations to and remove the Azure resource group that contains the cluster.
295+
If you won't use this deployment further, delete the Kubernetes cluster that you deployed Azure IoT Operations to and remove the Azure resource group that contains the cluster.
280296

281297
## Next step
282298

0 commit comments

Comments
 (0)