az iot ops ns asset sse dataset
Note
This reference is part of the azure-iot-ops extension for the Azure CLI (version 2.70.0 or higher). The extension will automatically install the first time you run an az iot ops ns asset sse dataset command. Learn more about extensions.
Manage datasets for SSE namespaced assets.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az iot ops ns asset sse dataset add |
Add a dataset to an SSE namespaced asset in an IoT Operations instance. |
Extension | GA |
| az iot ops ns asset sse dataset export |
Export datasets to file. |
Extension | GA |
| az iot ops ns asset sse dataset import |
Import datasets from file. |
Extension | GA |
| az iot ops ns asset sse dataset list |
List datasets for an SSE namespaced asset in an IoT Operations instance. |
Extension | GA |
| az iot ops ns asset sse dataset remove |
Remove a dataset from an SSE namespaced asset in an IoT Operations instance. |
Extension | GA |
| az iot ops ns asset sse dataset show |
Show details of a dataset for an SSE namespaced asset in an IoT Operations instance. |
Extension | GA |
| az iot ops ns asset sse dataset update |
Update a dataset for an SSE namespaced asset in an IoT Operations instance. |
Extension | GA |
az iot ops ns asset sse dataset add
Add a dataset to an SSE namespaced asset in an IoT Operations instance.
az iot ops ns asset sse dataset add --asset
--instance
--name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--data-source --ds]
[--dest --destination]
[--replace {false, true}]
[--tr --type-ref]
Examples
Add a basic dataset to an SSE asset
az iot ops ns asset sse dataset add --asset mysseAsset --instance myInstance -g myInstanceResourceGroup --name sensorData --data-source "temperature"
Add a dataset with MQTT destination
az iot ops ns asset sse dataset add --asset mysseAsset --instance myInstance -g myInstanceResourceGroup --name eventData --data-source "events" --dest topic="factory/sse/events" retain=Never qos=Qos1 ttl=3600
Add a dataset with BrokerStateStore destination
az iot ops ns asset sse dataset add --asset mysseAsset --instance myInstance -g myInstanceResourceGroup --name cacheData --data-source "metrics" --dest key="sse-metrics-cache"
Replace an existing dataset
az iot ops ns asset sse dataset add --asset mysseAsset --instance myInstance -g myInstanceResourceGroup --name sensorData --data-source "humidity" --replace
Required Parameters
Asset name.
The name of the Azure IoT Operations instance.
Dataset 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.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Data source for the dataset.
Key=value pairs representing the destination for datasets. Allowed arguments include: key for BrokerStateStore or topic, retain, qos, and ttl for MQTT. Allowed values for retain are Keep and Never and allowed values for qos are Qos0 and Qos1.
Replace the dataset if another dataset with the same name is already present.
| Property | Value |
|---|---|
| Default value: | False |
| Accepted values: | false, true |
Type definition ID or URI.
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 sse dataset export
Export datasets to file.
Export all datasets from an asset to JSON or YAML format.
az iot ops ns asset sse dataset export --asset
--instance
--resource-group
[--acquire-policy-token]
[--change-reference]
[--format {csv, json, yaml}]
[--od --output-dir]
[--replace {false, true}]
Required Parameters
Asset name.
The name of the Azure IoT Operations instance.
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.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Export file format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | csv, json, yaml |
Output directory for export.
| Property | Value |
|---|---|
| Default value: | . |
Replace the dataset if another dataset 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 sse dataset import
Import datasets from file.
Import datasets from JSON or YAML file. Use --replace to merge with overwrite.
az iot ops ns asset sse dataset import --asset
--if --input-file
--instance
--resource-group
[--acquire-policy-token]
[--change-reference]
[--replace {false, true}]
Required Parameters
Asset name.
Path to import file (JSON or YAML).
The name of the Azure IoT Operations instance.
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.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Replace the dataset if another dataset 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 sse dataset list
List datasets for an SSE namespaced asset in an IoT Operations instance.
az iot ops ns asset sse dataset list --asset
--instance
--resource-group
Examples
List all datasets for an SSE asset
az iot ops ns asset sse dataset list --asset mysseAsset --instance myInstance -g myInstanceResourceGroup
Required Parameters
Asset 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 sse dataset remove
Remove a dataset from an SSE namespaced asset in an IoT Operations instance.
az iot ops ns asset sse dataset remove --asset
--instance
--name
--resource-group
[--acquire-policy-token]
[--change-reference]
Examples
Remove a dataset from an SSE asset
az iot ops ns asset sse dataset remove --asset mysseAsset --instance myInstance -g myInstanceResourceGroup --name sensorData
Required Parameters
Asset name.
The name of the Azure IoT Operations instance.
Dataset 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.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
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 sse dataset show
Show details of a dataset for an SSE namespaced asset in an IoT Operations instance.
az iot ops ns asset sse dataset show --asset
--instance
--name
--resource-group
Examples
Show dataset details
az iot ops ns asset sse dataset show --asset mysseAsset --instance myInstance -g myInstanceResourceGroup --name sensorData
Required Parameters
Asset name.
The name of the Azure IoT Operations instance.
Dataset 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 |
az iot ops ns asset sse dataset update
Update a dataset for an SSE namespaced asset in an IoT Operations instance.
az iot ops ns asset sse dataset update --asset
--instance
--name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--dest --destination]
Examples
Update dataset destination to MQTT
az iot ops ns asset sse dataset update --asset mysseAsset --instance myInstance -g myInstanceResourceGroup --name sensorData --dest topic="factory/sse/updated/sensor" retain=Keep qos=Qos1 ttl=3600
Update dataset destination to BrokerStateStore
az iot ops ns asset sse dataset update --asset mysseAsset --instance myInstance -g myInstanceResourceGroup --name metricsData --dest key="updated-sse-metrics"
Required Parameters
Asset name.
The name of the Azure IoT Operations instance.
Dataset 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.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Key=value pairs representing the destination for datasets. Allowed arguments include: key for BrokerStateStore or topic, retain, qos, and ttl for MQTT. Allowed values for retain are Keep and Never and allowed values for qos are Qos0 and Qos1.
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 |