az iot ops ns asset custom event 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 custom event 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 event points for custom asset events in Device Registry namespaces.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az iot ops ns asset custom event point add |
Add an event data point to a custom asset event in a Device Registry namespace. |
Extension | Preview |
| az iot ops ns asset custom event point list |
List event points for a custom asset event in a Device Registry namespace. |
Extension | Preview |
| az iot ops ns asset custom event point remove |
Remove an event point from a custom asset event in a Device Registry namespace. |
Extension | Preview |
az iot ops ns asset custom event point add
Command group 'iot ops ns' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Add an event data point to a custom asset event in a Device Registry namespace.
az iot ops ns asset custom event point add --asset
--data-source --ds
--event
--instance
--name
--resource-group
[--config]
[--replace {false, true}]
Examples
Add a basic custom event point
az iot ops ns asset custom event point add --asset mycustomasset --instance myInstance -g myInstanceResourceGroup --event alarmEvent --name severity --data-source "alarm.severity"
Replace a custom event point with same name
az iot ops ns asset custom event point add --asset mycustomasset --instance myInstance -g myInstanceResourceGroup --event alarmEvent --name severity --data-source "alarm.severity.updated" --replace
Required Parameters
Asset name.
Data source for the event data point.
Event name.
The name of the Azure IoT Operations instance.
Data point name.
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.
Custom event data point configuration as a JSON string or file path.
Replace the data point if another point with the same name is already present.
| Property | Value |
|---|---|
| Default value: | False |
| Accepted values: | false, true |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az iot ops ns asset custom event point list
Command group 'iot ops ns' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List event points for a custom asset event in a Device Registry namespace.
az iot ops ns asset custom event point list --asset
--event
--instance
--resource-group
Examples
List all event points for an event
az iot ops ns asset custom event point list --asset mycustomasset --instance myInstance -g myInstanceResourceGroup --event alarmEvent
Required Parameters
Asset name.
Event name.
The name of the Azure IoT Operations instance.
The resource group of the Azure IoT Operations instance.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az iot ops ns asset custom event point remove
Command group 'iot ops ns' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Remove an event point from a custom asset event in a Device Registry namespace.
az iot ops ns asset custom event point remove --asset
--event
--instance
--name
--resource-group
Examples
Remove an event point from an event
az iot ops ns asset custom event point remove --asset mycustomasset --instance myInstance -g myInstanceResourceGroup --event alarmEvent --name severity
Required Parameters
Asset name.
Event name.
The name of the Azure IoT Operations instance.
Data point name.
The resource group of the Azure IoT Operations instance.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |