Skip to content

Commit afda563

Browse files
committed
Update prereqs
1 parent a05ed93 commit afda563

File tree

3 files changed

+33
-32
lines changed

3 files changed

+33
-32
lines changed

articles/iot-operations/discover-manage-assets/howto-autodetect-opcua-assets-using-akri.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,26 @@ In this article, you learn how to automatically discover and configure OPC UA as
1616

1717
## Prerequisites
1818

19-
A deployed instance of Azure IoT Operations. If you don't already have an instance, see [Quickstart: Run Azure IoT Operations in GitHub Codespaces with K3s](../get-started-end-to-end-sample/quickstart-deploy.md).
19+
- A deployed instance of Azure IoT Operations with resource sync rules enabled. You can only enable resource sync rules when you create your Azure IoT Operations instance. To learn more, see [Deploy Azure IoT Operations](../deploy-iot-ops/overview-deploy.md).
20+
21+
> [!NOTE]
22+
> By default, the [deployment quickstart](../get-started-end-to-end-sample/quickstart-deploy.md) instructions do not enable resource sync rules.
23+
24+
- The custom location in the resource group where you deployed Azure IoT Operations must have the **Azure Kubernetes Service Arc Contributor Role** role enabled with **K8 Bridge** as a member. For example:
25+
26+
```bash
27+
CUSTOM_LOCATION_NAME=$(az iot ops list -g <YOUR RESOURCE GROUP> --query "[0].extendedLocation.name" -o tsv)
28+
29+
ASSIGNEE=$(az ad sp list --display-name "K8 Bridge" --query "[0].appId" -o tsv)
30+
31+
az role assignment create --role "Azure Kubernetes Service Arc Contributor Role" --assignee $ASSIGNEE --scope $CUSTOM_LOCATION_NAME
32+
```
33+
34+
## Deploy the preview connectors
35+
36+
Currently, discovery is only enabled in the preview version of the connector for OPC UA.
37+
38+
[!INCLUDE [deploy-preview-media-connectors](../includes/deploy-preview-media-connectors.md)]
2039

2140
## Create an asset endpoint
2241

@@ -26,7 +45,7 @@ To create an asset endpoint with discovery enabled:
2645

2746
1. Add a new asset endpoint and select the **Enable discovery** option:
2847

29-
:::image type="content" source="media/howto-autodetect-opcua-assets-using-akri/enable-auto-discover.png" alt-text="Create an asset endpoint with discovery enabled.":::
48+
:::image type="content" source="media/howto-autodetect-opcua-assets-using-akri/enable-auto-discover.png" alt-text="Create an asset endpoint with discovery enabled.":::
3049

3150
1. Select **Create** to create the asset endpoint.
3251

@@ -36,7 +55,7 @@ Azure IoT Operations uses the asset endpoint to connect to the OPC UA server and
3655

3756
1. Go to the **Discovery** page for your instance in the operations experience:
3857

39-
:::image type="content" source="media/howto-autodetect-opcua-assets-using-akri/discovered-assets-list.png" alt-text="View discovered assets.":::
58+
:::image type="content" source="media/howto-autodetect-opcua-assets-using-akri/discovered-assets-list.png" alt-text="View discovered assets.":::
4059

4160
1. You can filter the list by the asset endpoint name, or by keyword. The list shows the discovered assets and their status.
4261

articles/iot-operations/includes/deploy-preview-media-connectors.md

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,23 @@ title: include file
33
description: include file
44
author: dominicbetts
55
ms.topic: include
6-
ms.date: 03/20/2025
6+
ms.date: 04/03/2025
77
ms.author: dobett
88
---
99

10-
To update the version of the media and ONVIF connectors in your Azure IoT Operations deployment, run the following PowerShell commands to enable preview features:
10+
To deploy the preview version of the connectors, you can either enable them when you deploy your Azure IoT Operations instance or enable them after you deploy your instance:
1111

12-
> [!IMPORTANT]
13-
> If you don't enable preview features, you see the following error message in the `aio-supervisor-...` pod logs when you try to use the media or ONVIF connectors: `No connector configuration present for AssetEndpointProfile: <AssetEndpointProfileName>`.
12+
- To enable the preview connectors when you deploy your Azure IoT Operations instance include the `--feature connectors.settings.preview=Enabled` parameter when you run `az iot ops create`.
1413

15-
```powershell
16-
$clusterName="<YOUR AZURE IOT OPERATIONS CLUSTER NAME>"
17-
$clusterResourceGroup="<YOUR RESOURCE GROUP NAME>"
14+
- To enable the preview connectors after you deploy your Azure IoT Operations instance by using the Azure portal:
1815

19-
$extension = az k8s-extension list `
20-
--cluster-name $clusterName `
21-
--cluster-type connectedClusters `
22-
--resource-group $clusterResourceGroup `
23-
--query "[?extensionType == 'microsoft.iotoperations']" `
24-
| ConvertFrom-Json
16+
:::image type="content" source="media/deploy-preview-media-connectors/portal-enable-preview-connectors.png" alt-text="Screenshot of Azure portal that shows how to enable the preview connectors.":::
2517

18+
- To enable the preview connectors after you deploy your Azure IoT Operations instance by using the Azure CLI:
2619

27-
az k8s-extension update `
28-
--version $extension.version `
29-
--name $extension.name `
30-
--release-train $extension.releaseTrain `
31-
--cluster-name $clusterName `
32-
--resource-group $clusterResourceGroup `
33-
--cluster-type connectedClusters `
34-
--auto-upgrade-minor-version false `
35-
--config connectors.image.registry=mcr.microsoft.com `
36-
--config connectors.image.repository=aio-connectors/helmchart/microsoft-aio-connectors `
37-
--config connectors.image.tag=1.1.0 `
38-
--config connectors.values.enablePreviewFeatures=true `
39-
--yes
40-
```
20+
```console
21+
az iot ops update -n <your-instance> -g <your-resource-group> --feature connectors.settings.preview=Enabled
22+
```
4123

42-
> [!NOTE]
43-
> This update process is for preview components only. The media and ONVIF connectors are currently preview components.
24+
> [!IMPORTANT]
25+
> If you don't enable preview features, you see the following error message in the `aio-supervisor-...` pod logs when you try to use the media or ONVIF connectors: `No connector configuration present for AssetEndpointProfile: <AssetEndpointProfileName>`.
47.3 KB
Loading

0 commit comments

Comments
 (0)