Share via


az iot ops ns asset opcua dataset point

Note

This reference is part of the azure-iot-ops extension for the Azure CLI (version 2.67.0 or higher). The extension will automatically install the first time you run an az iot ops ns asset opcua dataset point command. Learn more about extensions.

Command group 'iot ops ns' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Manage data points for OPC UA asset datasets in Device Registry namespaces.

Commands

Name Description Type Status
az iot ops ns asset opcua dataset point add

Add a data point to an OPC UA asset dataset in a Device Registry namespace.

Extension Preview
az iot ops ns asset opcua dataset point list

List data points for an OPC UA asset dataset in a Device Registry namespace.

Extension Preview
az iot ops ns asset opcua dataset point remove

Remove a data point from an OPC UA asset dataset in a Device Registry namespace.

Extension Preview

az iot ops ns asset opcua dataset point add

Preview

Command group 'iot ops ns' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Add a data point to an OPC UA asset dataset in a Device Registry namespace.

az iot ops ns asset opcua dataset point add --asset
                                            --data-source --ds
                                            --dataset
                                            --instance
                                            --name
                                            --resource-group
                                            [--qs --queue-size]
                                            [--replace {false, true}]
                                            [--sampling-int --si]

Examples

Add a basic OPC UA data point

az iot ops ns asset opcua dataset point add --asset myopcuaasset --instance myInstance -g myInstanceResourceGroup --dataset temperatureData --name temp1 --data-source "ns=2;s=Temp1"

Add an OPC UA data point with queue size and sampling interval

az iot ops ns asset opcua dataset point add --asset myopcuaasset --instance myInstance -g myInstanceResourceGroup --dataset pressureData --name pressure1 --data-source "ns=2;s=Pressure1" --queue-size 5 --sampling-int 1000

Add an OPC UA data point and replace existing one with same name

az iot ops ns asset opcua dataset point add --asset myopcuaasset --instance myInstance -g myInstanceResourceGroup --dataset temperatureData --name temp1 --data-source "ns=3;s=NewTemp1" --replace

Required Parameters

--asset -a

Asset name.

--data-source --ds

Data source for the data point.

--dataset -d

Dataset name.

--instance -i

The name of the Azure IoT Operations instance.

--name

Data point name.

--resource-group -g

The resource group of the Azure IoT Operations instance.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--qs --queue-size

Queue size. Minimum: 0.

Property Value
Parameter group: Default Dataset Arguments
--replace

Replace the data point if another point with the same name is already present.

Property Value
Default value: False
Accepted values: false, true
--sampling-int --si

Sampling interval in milliseconds. Minimum: -1.

Property Value
Parameter group: Default Dataset Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az iot ops ns asset opcua dataset point list

Preview

Command group 'iot ops ns' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List data points for an OPC UA asset dataset in a Device Registry namespace.

az iot ops ns asset opcua dataset point list --asset
                                             --dataset
                                             --instance
                                             --resource-group

Examples

List all data points for a dataset

az iot ops ns asset opcua dataset point list --asset myopcuaasset --instance myInstance -g myInstanceResourceGroup --dataset temperatureData

Required Parameters

--asset -a

Asset name.

--dataset -d

Dataset name.

--instance -i

The name of the Azure IoT Operations instance.

--resource-group -g

The resource group of the Azure IoT Operations instance.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az iot ops ns asset opcua dataset point remove

Preview

Command group 'iot ops ns' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Remove a data point from an OPC UA asset dataset in a Device Registry namespace.

az iot ops ns asset opcua dataset point remove --asset
                                               --dataset
                                               --instance
                                               --name
                                               --resource-group

Examples

Remove a data point from a dataset

az iot ops ns asset opcua dataset point remove --asset myopcuaasset --instance myInstance -g myInstanceResourceGroup --dataset temperatureData --name temp1

Required Parameters

--asset -a

Asset name.

--dataset -d

Dataset name.

--instance -i

The name of the Azure IoT Operations instance.

--name

Data point name.

--resource-group -g

The resource group of the Azure IoT Operations instance.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False