az dt twin telemetry
Test and validate the event routes and endpoints of a Digital Twins instance.
Commands
az dt twin telemetry send |
Sends telemetry on behalf of a digital twin. If component path is provided the emitted telemetry is on behalf of the component. |
az dt twin telemetry send
Sends telemetry on behalf of a digital twin. If component path is provided the emitted telemetry is on behalf of the component.
az dt twin telemetry send --dt-name
--twin-id
[--component]
[--dt-id]
[--resource-group]
[--telemetry]
Examples
Send twin telemetry
az dt twin telemetry send -n {instance_or_hostname} --twin-id {twin_id}
Required Parameters
Digital Twins instance name or hostname. If an instance name is provided, the user subscription is first queried for the target instance to retrieve the hostname. If a hostname is provided, the subscription query is skipped and the provided value is used for subsequent interaction.
The digital twin Id.
Optional Parameters
The path to the DTDL component. If set, telemetry will be emitted on behalf of the component.
A unique message identifier (in the scope of the digital twin id) that is commonly used for de-duplicating messages. If no value is provided a GUID is automatically generated.
Digital Twins instance resource group. You can configure the default group using az configure --defaults group=<name>
.
Inline telemetry JSON or file path to telemetry JSON. Default payload is an empty object: {}.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.